Problem with Nuget Packages Visual Studio

5

Trying to compile the application, I come across the error:

  

Severity Code Description Project File Line Suppression State   Error This project references NuGet package (s) that are missing on   this computer. Use NuGet Package Restore to download them. For more   information, see link . The   missing file is   .. \ packages \ Microsoft.Net.Compilers.1.3.2 \ build \ Microsoft.Net.Compilers.props. Property Controls E: \ Projects   Visual Studio \ Projects   VisualStudio2015 \ ControlPage \ ControlPatrimonial.csproj 356

I've tried the following:

  • Microsoft.Net.Compilers Update-Package -reinstall
  • Remove line in packages.config
  • Remove the Package folder, and place another folder from another project.
  • Delete the folder and install again via nuget

However, none of these attempts were successful. How do I solve this problem?

    
asked by anonymous 15.02.2017 / 18:22

1 answer

6

You have possibly moved something of place and lost the reference between directories.

Open the .csproj file of your solution as text (in VS or in Notepad) and check the directory where the Microsoft.Net.Compilers.1.3.2 reference is. Save the file and reopen the solution.

    
15.02.2017 / 18:25