Visual studio 2015 project missing all references

前端 未结 9 837
星月不相逢
星月不相逢 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:04

    It can help to force rebuild the nuget packages. Go to the nuget console and use the following commands: (TOOLS > Options > Package Manager > Package Manager Conbsole)

    Update-Package -reinstall -ProjectName "MyProject" -safe
    

    The safe parameter will actually not update the packages, but only reinstall them. If that didn't help, you can try to actually update them (but make sure you have a copy of the project somewhere, just in case.)

    Update-Package -reinstall -ProjectName "MyProject"
    

    To force update just one package, use:

    Update-Package -id Microsoft.Package.Name -ProjectName "MyProject"
    

提交回复
热议问题