Problem with Nuget Packages Visual Studio

Asked

Viewed 6,325 times

6

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 http://go.microsoft.com/fwlink/? Linkid=322105. The Missing file is .. Packages Microsoft.Net.Compilers. 1.3.2 build Microsoft.Net.Compilers.props. Controlepatrimonial E: Projects Visual Studio Projects VisualStudio2015\ControlePatrimonial\ControlePatrimonial.csproj 356

I’ve tried the following:

  • Update-Package Microsoft.Net.Compilers -reinstall
  • Remove the line on packages.config
  • Take out the Package folder, and put another one from another project.
  • Delete the folder and install again via nuget

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

1 answer

9


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

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

  • 1

    Thanks, you showed me the way to what needed to be done.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.