Is there a way to automatically update nuget.exe in the .nuget folder when using package restore?

后端 未结 3 365
执笔经年
执笔经年 2020-12-23 02:46

My team has been using the Enable Package Restore option since Nuget 1.5 to keep packages out of our source control. When Nuget 1.6 was released we noticed an issue where i

3条回答
  •  温柔的废话
    2020-12-23 03:17

    I've found the best way to handle this is by simply deleting the .nuget folder and re-enabling solution wide package restore. As said above, you could add a self update command to your build, but that will not update the targets or config files if there are changes between versions (or remove the reference from your solution). Perhaps its not that big of a deal, but this is the sure fire way to make sure you have the latest exe and configuration files. And at the end of the day, updating is only an issue if you need access to a new command or there is eventually a breaking change in a new release.

提交回复
热议问题