-
Notifications
You must be signed in to change notification settings - Fork 329
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
Cannot install System.Collections.Immutable: Install Button does nothing? #401
Comments
Stack trace of exception, copied from debugger:
Indeed, |
Same error here. Enabling verbose logging says Package is already installed and nothing happens. |
The same happened here with System.Threading.Tasks.Extensions. |
I've just come across the same issue - any solutions? |
The same solution for everything that doesn't work with this plugin: Install the dependency in some other project, manually copy around dlls of the dependency and its dependencies and then hope that unity doesn't complain. Get desperate, manually guess which boxes need to be ticked in the inspector, and at some point it might just work. At least that's how I eventually did it... |
The simplest answer is to add a text file called |
Same issue on my side. I tried @jhughes2112 solution but doesn't seem to work for me. There is one workaround I found following this: https://docs.microsoft.com/en-us/visualstudio/gamedev/unity/unity-scripting-upgrade Basically:
Works, but ended up not using the Immutables at that point. Could be useful for a critical package. |
Yes, @bawahakim describes the technique I use now for most dependencies. I stopped using NuGet because I needed to break apart a package and explicitly manage some dependency version numbers, and NuGet didn't let me do that. Be aware, though, that if a package requires specific versions of a .dll, Unity will throw a fit if you call a function that is from that package and you have the wrong version (or no version) in the plugins folder, because it fails to load the Assembly, and throws an exception instead. This won't be apparent until you hit one of those functions at runtime. So be thorough. |
The issue still exists. I like NuGetForUnity. Does it possible to fix it? It is so annoying to import DLLs manually :( |
same issue with NuGet Package: System.IdentityModel.Tokens.Jwt |
Sorry for the delay. But there was a time with nearly no active contributors... |
Description
Originally installed: System.Collections.Immutable 1.7.2 through plugin version 2.0.3 (I think)
Updated package. Clicked "Install All Updates". Worked fine for all packages but that one. For some reason, whenever I click the "Install" button, nothing happens. Of course, the code stopped compiling, as it can't find the immutable collections anymore.
Running the debugger with a breakpoint on any exception reveals this in
NugetPackage.cs
:The text was updated successfully, but these errors were encountered: