Mi è capitato di aprire con Visual Studio 2015 una solution fatta con Visual Studio 2013 che usava pacchetti NuGet ed avere molte reference, tra cui la System, non valide:
dopo alcune ricerche ho scoperto che per risolvere l'errore bastava rimuovere i tag seguenti dal file di progetto (.csproj):

XML

<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
    <PropertyGroup>
      <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
  </Target>
Tags:
C#235 Errori120 Visual Basic20 Visual Studio37
Potrebbe interessarti anche: