-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0 #92
Comments
For some reason pinning |
Hi @JohanLarsson , |
With pin I meant specifying an exact version of the nuget package. Looks like this using paket.
|
I had the same issue as above with the Unity 5.9.3 NuGet package - it seems the version now includes this System.Runtime.CompilerServices.Unsafe assembly, but the version it installs has no version info specified in the DLL. @JohanLarsson 's answer sorted it for me (in my case I added the 4.5.2 version of the package). |
So, reading this thread I got confused. Should it be version 4.5.1 or latest >=4.5.2 is fine? |
Depends on Roslyn version I think. I've been unpinning with latest. Unpinning as in using latest version of both. Here is a test project that uses latest of both: https://github.com/DotNetAnalyzers/PropertyChangedAnalyzers The analyzer library is pinned to
It is using paket if it looks unfamiliar. I don't use nuget.exe much so can't help with that. |
Installing version 4.5.1 of System.Runtime.CompilerServices.Unsafe worked for me too. I downgraded from 4.5.2 where I was getting the same error. |
When using
Microsoft.CodeAnalysis.Common 2.9
The text was updated successfully, but these errors were encountered: