try first delete all c# configuration files in project.(or make C# empty project and create any cs class in project)
check in Command line what versions of .Net is installed in system.
and make C# solution.
Creating a new console app with VS Code I got this error. I assume it has to do with the .NET SDK version. I’ll have a look at downloading the x64 version of the SDK
x86 refers to 32-bit architecture, while x64 denotes 64-bit architecture. A 32-bit system is only capable of running 32-bit programs, whereas a 64-bit system can run both 32-bit and 64-bit programs. When working with C# development kits and .NET frameworks, it’s essential to ensure that the versions match to avoid compatibility issues.
you can try make Console app using command line
Create Folder
Open your folder in windows explorer
type cmd press enter and you will be in that folder in command line
in console type: dotnet new console dotnet run
you should see
I’ve re-downloaded Rider to try and see if building the solution of your test project would yield some results. If not I’ll try and build the solution in Visual Studio
Building the solution in Rider is successful but trying to actually build the project within the editor yields the same error as above, same applies for Visual Studio. Only difference I noticed was that Rider was using the x64 version of .NET ('C:\Program Files\dotnet) instead of the x86 version to build the solution. Could this be an issue with how Godot chooses which SDK to use to build the project?
Fixed! I saw on another thread similar to my issue that GodotSharpEditor targets .NET 6 SDK, as a hail mary, I downloaded the SDK and it worked! Built Moreus’s test project, worked.
Then in the terminal you need to go to the project folder and write the command dotnet restore.
If the error is due to the fact that some links to the SDK in the project have gone astray, for example, the problem can be solved.
(And the problem sounds a lot like this!)