Nuget - Package restore failed. Rolling back package changes for 'WebApplication1'. 0

前端 未结 3 1633
渐次进展
渐次进展 2020-12-23 16:20

It\'s my own custom nuget package that I\'ve not published yet and testing locally.

The nuget package consists of a dll file and nuspec file is as follows.



        
相关标签:
3条回答
  • 2020-12-23 16:43

    You need clear the Nuget Cache. To do this, go to Tools -> Options and click on it like this picture

    0 讨论(0)
  • 2020-12-23 16:46

    Your project is targetting an incompatible version of .Net Framework. Right click on the project, select properties and note the value of the Target Framework. Look at the Nuget package for Microsoft and then install a more suitable NuGet package. Either install the older version of the NuGet package or update your project to target a newer version.

    0 讨论(0)
  • 2020-12-23 16:54

    I had to change the Build Configuration due to an NU1603: warning.

    In my Build configuration the "Treat warnings as errors" was set to All.

    This was blocking Nuget from upgrading the Package due to the NU1603 warning.

    0 讨论(0)
提交回复
热议问题