-
Notifications
You must be signed in to change notification settings - Fork 215
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
Redot cannot find .net SDK. #669
Comments
I was able to reproduce the issue. |
I have a bit to learn with regards to contributing a fix to the code here but I can offer more specifics on what the issue is. The first line of the .csproj file associated with the project is: This doesn't exist in nuget.org. Looks like it is now this: If you update your .csproj file to include the .3, it should build. Has the "works on my machine" stamp of approval, anyway. |
As stated in official documentation
Basically the solution for maintainers is to set the env variable GODOT_VERSION_STATUS to specific version before building the packages (in other words running $env:GODOT_VERSION_STATUS = "dev3" This will tell MSBuild to find |
It also implies that maintainers have to upload packages to nuget.org |
I'm also having this issue. |
For anyone having this issue here is how you can solve it.
Above steps should auto change your .csproj but just double check your .csproj has the following <Project Sdk="Godot.NET.Sdk/4.4.0-dev.3"> |
There is also an alternative solution for you Use the command dotnet nuget add source "C:\your_location\redot-editor-mono\GodotSharp\Tools\nupkgs" --name "Redot Packages v4.4-dev" Remember to remove the package source when moving or uninstalling the Redot engine. dotnet nuget remove source "Redot Packages v4.4-dev" If you are using Visual Studio, there is another additional way to manage sources: |
Tested versions
-Reproducible in: Redot mono build
System information
Windows 10 Redot mono build
Issue description
When trying to launch a project with Redot mono build it returns these two errors:
Could not resolve SDK "Godot.NET.Sdk". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
Unable to find package Godot.NET.Sdk with version (= 4.4.0-dev)
MSB4276: The default SDK resolver failed to resolve SDK "Godot.NET.Sdk" because directory "c:\program files\dotnet\sdk\8.0.110\Sdks\Godot.NET.Sdk\Sdk" did not exist.
MSB4236: The SDK 'Godot.NET.Sdk/4.4.0-dev' specified could not be found.
Steps to reproduce
1.Open an empty Redot C# project
2. Build a C# solution by going Tools -> C# -> Create C# solution
3.Create an empty scene
4. Run the project
Minimal reproduction project (MRP)
test.zip
The text was updated successfully, but these errors were encountered: