-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Mono Install Package/Nuget throws Microsoft.NETFramework.ReferenceAssemblies error #40926
Comments
This may or may not also be related to #40805 as they are both missing assemblies. It is just a guess. |
Can you try with 3.2.3 RC 3? |
Thanks for the response akien, I just tried it with 3.2.3 RC 3! I now get this error message in the mono console of the Godot editor when attempting to build and launch the project from the Godot editor: Mind you this didn't happen in the Godot mono console before, only in visual studio 2019 when attempting to install packages. Also, a new interesting thing happens when opening this newly RC3 created project with Visual Studio 2019, I got an incompatibility message stating that "The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=8F3E2DF0-C35C-4265-82FC-BEA011F4A7ED" And visual studio 2019 displays the newly created project in the following way after the incompatibility message: I am far from an experienced C# programmer, any help with this is appreciated! In 3.2.2stable I could still build and launch the project just fine and that error only occurred when attempting to install packages. The Install-Package command now returns this error in the RC3 project: |
Note that starting with 3.2.3 (including the RC3), there's an addin you can use for Visual Studio support: https://github.com/godotengine/godot-csharp-visualstudio Maybe that's what the error is referring to? I'm not so familiar with the C# development workflow either, so I'm not sure. In any case, it's a bit confusing so usability-wise there are likely necessary improvements. |
Unfortunately in order to extend Visual Studio to add functionality for Godot projects we need to the project to have a custom project type guid the extension can handle. At the same time if there's no extension that recognizes that project type guid then Visual Studio can't open the project at all. |
Great, I can now open new Godot 3.2.3 RC3 projects with Visual Studio! I just can no longer build and run the new RC3 project, not from the Godot editor either. I get the following error with RC3: |
I use a lot of NuGet packages with 3.1
Not a fix, but maybe it can help you out for now. |
@timothyparez Thank you, for 3.2.2 this works!! I do hope that for Godot 3.2.3 this missing Microsoft.NETFramework.ReferenceAssemblies error gets resolved because otherwise, I won't be able to work with C# at all anymore as no project will build or run then! But for now, in 3.2.2 I can still build & run Godot mono games/projects and install C# packages using the aforementioned method. |
This comment has been minimized.
This comment has been minimized.
@Calinou I have tried it out with 3.2.3RC3 and this is what I experienced: the missing Microsoft.NETFramework.ReferenceAssemblies error becomes critical and I can no longer run and build Godot mono projects. Whereas in 3.2.2 this error only occurs when attempting to install packages with Nuget but building and running Godot mono projects still work fine. |
I wasn't able to reproduce. Tried all build tools (except Mono's MSBuild which has different issues). Can you enable the option |
These are the error traces that I can find with Godot 3.2.3RC3. |
Issue resolved! In Visual Studio with the RC3 project open I went to References > Manage Nuget Packages, and then looked for Microsoft.NETFramework.ReferenceAssemblies and just uninstalled it. Now the project can build and the hello world print from the C# script works. I did not manually add or install Microsoft.NETFramework.ReferenceAssemblies, it just gets there upon creation. I assume that this is fine to remove and won't break things. At least I haven't seen that it breaks stuff right now. If there is nothing wrong with this solution then on my end you can close this issue. This has been the fix for me. If it turns out stuff does break I will report back. Thank you for your help guys it's been very valuable! |
#41408 may fix this issue. |
Assuming that #41408 fixed it. Please comment if you can still reproduce the issue with 3.2.3 or any later release. |
Godot version:
Godot Engine v3.2.2.stable.mono.official
OS/device including version:
Building on Windows 10 64 bit with Visual Studio 2019 installed.
Issue description:
Each time when running the command Install-Package in Visual Studio 2019 to get packages like Newtonsoft.Json it throws the following error consistently:
Install-Package : NU1101: Unable to find package Microsoft.NETFramework.ReferenceAssemblies. No packages exist with this id in source(s): Local mono packages, Microsoft Visual Studio Offline Packages, Project Packages
And this error prevents the installation of the C# packages. I can load in dll files but unfortunately far from all C# packages have dll files available to download, many require a Install-Package command installation.
Steps to reproduce:
Create a new Godot mono project, add a C# script, build it once. Open up the .sln with Visual Studio 2019 and use the NuGet package manager to install whatever package.
The text was updated successfully, but these errors were encountered: