Better way is remove folders "obj" "bin"
open visual studio -> open terminal
dotnet restore YourProjectname.sln
wait 5 minut
rebuild app