I am facing a problem with my project.
The type or namespace name \'System\' could not be found (are you missing a using directive or an assembly ref
Such nuget restore issues can normally fix by deleting the obj folder where files like project.assets.json
, projectname.csproj.nuget.g.targets
, projectname.csproj.nuget.g.props
, projectname.csproj.nuget.dgspec.json
and projectnamecsproj.nuget.cache
.
If this still doesn't fix it, delete the hidden .vs folder inside the solution, where Visual Studio stores the user settings for the project.