What did you expect to see
No issues, the function should work without issues on all machines.
What did you see instead?
The following error was reported on SOME machines :
Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
We are not sure what is causing this to happen only on some machines. We don't have access to these machines and we weren't able to reproduce the issue. Using Procmon we see that the System.Runtime.CompilerServices.Unsafe.dll was not tried to be loaded from the path to which we deployed it :