So I run into a problem where my project suddenly got an error saying the same as the title I’ve made. I never run into this before. This is happening when I run visual studio 2020 in regular mode, but when I run it as Admin it works fine and not showing this error message. Before I always run the visual studio 2020 in regular mode, I’ve never run it in Admin mode when I develop my project. I’m afraid if I develop my App in Admin Mode later when I build it into Application it will turn into a problem.
My Project using dotnet-8.0 framework in WPF.
What I’ve done to resolve but still won’t work
- In Dev Command Prompt I do
dotnet restore
and then I try to remove the cachedotnet nuget locals all --clear
and then dodotnet restore
. - I already try to change the target framework to lower version and then change back to 8.0.
- I also tried to clean and rebuild solution, and the problem still persists.