Reinstall Nuget Package Manager in Visual Studio 2019

前端 未结 1 1684
长发绾君心
长发绾君心 2020-12-06 23:46

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

相关标签:
1条回答
  • 2020-12-07 00:16

    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.

    0 讨论(0)
提交回复
热议问题