Sometimes the SDK or project files can get corrupted. You could try cleaning and rebuilding your project.
Use the following commands in the terminal/command prompt:
Code:
dotnet clean
dotnet build
If the issue persists, try reinstalling the .NET SDK.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.