Monogame Project cannot resolve Microsoft.-
In Rider Ive downloaded all of the monogame templates and the dotnet framework, but upon opening the cross platform template, there are errors strewn across the code. Im assuming this is because Rider is somehow doesn't have or doesn't recognize the botnet framework. At the beginning of the standard "Game1" file, "Microsoft" cannot be resolved, which I assume cascades into all of the methods in the code.
Ive uninstalled and reinstalled the dotnet framework, and have tried importing other packages through NuGet with not avail.
Help!
Please sign in to leave a comment.
Hello Dominik,
I see the following options for possible solution:
1. To use .Net Core instead of .Net Framework:
File | Settings | Build, Execution, Deployment | Toolset and Buildfor.Net CLI executable pathI have path to the dotnet executable with /sdk/5.0{minor};MSBuild versionis set to MSBuild.exe from Visual Studio folder.Hello Dmitry,
Thank you for your reply. All the errors are now gone, here's what I did.
I changed the .NET SDK to 5, which didn't work until I changed the C# version to 8.0 instead of it's default.
However, I now have only one more issue which is that it spews out an "Error building Win32 resources -- Unable to read beyond the end of the stream." I have absolutely no idea what could be going wrong, since its still just the default code that is there.
Thank you again!
Dom
EDIT: I just found a lot of errors in the app.manifest file, "URI is not registered" How can this be fixed?
Hello Dominik,
Apologies for not responding earlier.
Would you mind trying to create a project via the `dotnet new mgdesktopgl` command and check if the issue persists?
Please let me know if it doesn't help.