C# – First steps with C# and .NET – part 053.

Today, I will show you how to create the debug and release EXE file type and fix errors on your projects.
With these two commands, you will create the EXE file type for debugging and releasing the project.

To fix errors on your project you can use this command:

Sometimes the upgrade of the NuGet packages or dot net version can crash your project.
Because the cs file type has the source code these files can be renamed into new files in order to be preserved.
For example Program.cs can be renamed into Program.bak.
Delete the bin and obj folders and the csproj file project.
Try to create another new project and rename back the backup source code files.
Add the old packages, see the example of the FreeRAM project from my old tutorial:

If you run again the project and you get errors about the: package … is not compatible with netcoreapp3.1 then you need to delete all files from : C:\Users\Your_User\.nuget\packages.
This is similar to the operation of clean NuGet caches.
The last step is to

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.