- In Solution Explorer, right click on the project name
- Select
Clean
- Select
Rebuild
If that does not do it, go out to the root of the project in Windows Explorer, delete the obj folder and bin folder, rebuild the project, if you happen to get an error run dotnet restore
at the command prompt, then rebuild.