1

This morning I received the following error when trying to build my Visual Studio ASP.NET solution:

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props.

I performed a NuGet Package Restore as instructed but the results stated that: all packages are already installed and there is nothing to restore.

The NuGet Package Manager settings are as follows:

NuGet Package Settings

How can I solve this issue?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Susan Farrar
  • 83
  • 1
  • 6
  • Is this related: https://stackoverflow.com/questions/22909506/this-project-references-nuget-packages-that-are-missing-on-this-computer ? – rene Dec 18 '21 at 16:48
  • I looked at that item and I found that I could not edit the .csproj file in Visual Studio as the 'Unload Project' item is greyed out. – Susan Farrar Dec 18 '21 at 18:25
  • Please uninstall the Package System.CodeDom and reinstall else you can remove the reference and delete CodeDom section from web config it'll help you – Yasin Sunni Dec 22 '21 at 07:08
  • Thank you for your response. Sorry, I'm a bit of a novice, can you explain to me how I could do this? – Susan Farrar Dec 23 '21 at 14:59

0 Answers0