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

I would suggest updating .nuget\nuget.exe with this command from the command line:

nuget.exe update -self

[EDIT] : Close VS Solution first. If there’s an update and the solution is opened, nuget.exe will be removed from the solution.

You could automatically update nuget.exe on restore by modifying the .nuget\nuget.targets to add the above command. I’d look at the restore command in there as an example. But I’m not sure if it’s worth it, nuget.exe updates aren’t that common, and backward compatibility should break very rarely.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)