Victor's Blog

Live as if you were to die tomorrow. Learn as if you were to live forever

NAVIGATION - SEARCH

Enable Nuget Package Restore for your solution could be a bad idea.

Nuget Package Restore in visual studio could be a very handy feature. But sometimes it could cause you more troubles than you think. I recently reorganized the folder structure for one of my MVC4 projects. When I finished that, visual studio restored all packages for me. Then I found out Nuget not only restored installed packages, but also updated them to the latest version automatically which includes from mvc4 to mvc5, entity framework 5 to entity framework 6. It took me more than 2 days to completed fix the build. Just image if this happens when you are in a tight project time frame.......

So I think the best way is to disable Nuget Package Restore in visual studio and check in all your packages to your source repository. Let your CI builds to check any missing packages. 

blog comments powered by Disqus