Visual studio 2015 project missing all references

前端 未结 9 722
星月不相逢
星月不相逢 2021-01-30 06:45

Starting from today, a WPF project that belongs to a solution with 20 projects, set all my references to missing

I\'ve just checked the MS suggestion and the othe

9条回答
  •  清酒与你
    2021-01-30 07:10

    This error may occur if you miss .targets file in nuget packages folder. In my case it was packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets

    Usually it happens when I'm adding packages to git repository (common .gitignore file is ignoring build folder everywhere) and checkout on another computer.

    Tip: you can modify .gitignore file to include all files in packages folder. Append these lines to the bottom:

    # Include all files in NuGet packages directory
    !/packages/**/
    

提交回复
热议问题