locked
NuGet packages are missing in MSBuild 2015 RRS feed

  • Question

  • Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 9/14/2016 4:19:05 PM.
    Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" on node 1 (rebuild target(s)).
    ValidateSolutionConfiguration:
      Building solution configuration "Debug|Any CPU".
    Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" (1) is building "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj" (2) on node 1 (Rebuild target(s)).
    F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj(286,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see  The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props.
    Done Building Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj" (Rebuild target(s)) -- FAILED.
    Done Building Project "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" (rebuild target(s)) -- FAILED.
    
    Build FAILED.
    
    "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles.sln" (rebuild target) (1) ->
    "F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj" (Rebuild target) (2) ->
    (EnsureNuGetPackageBuildImports target) -> 
      F:\Sonar\workspace\SonarQube_Automation\011\C#\shanuMVCUserRoles\shanuMVCUserRoles.csproj(286,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props.
    Wednesday, September 14, 2016 11:25 PM

Answers

  • Hi FangCai,

    Please check if you move the app files (including the .csproj) file to another location. all packages dependencies are now (Visual Studio 2015) stored in .csproj file.

    Please edit the .csproj file and correct the relative path to the solution folder (which contains the packages folder).

    For more information, please refer to:

    http://stackoverflow.com/questions/32254439/nuget-packages-are-missing

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by FangCai Friday, September 16, 2016 4:12 PM
    Thursday, September 15, 2016 7:22 AM

All replies

  • Hi FangCai,

    Please check if you move the app files (including the .csproj) file to another location. all packages dependencies are now (Visual Studio 2015) stored in .csproj file.

    Please edit the .csproj file and correct the relative path to the solution folder (which contains the packages folder).

    For more information, please refer to:

    http://stackoverflow.com/questions/32254439/nuget-packages-are-missing

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by FangCai Friday, September 16, 2016 4:12 PM
    Thursday, September 15, 2016 7:22 AM
  • Thank you Cole!
    Thursday, September 15, 2016 3:59 PM