Service Fabric: The project must have its NuGet packages restored (infinite loop)

After you've upgraded your Service Fabric SDK through NuGet, you might find yourself stuck in an infinite loop where Visual Studio asks you to restore NuGet packages:



That's no fun! Here's how you fix it:

First off, unload your Service Fabric project


Then edit it ... 

Update the path to the .props file at the top of the .sfproj (...MSBuild.1.5.0...)


Update the path to the .targets file at the bottom of the .sfproj (...MSBuild.1.5.0...)



Save your project and reload it!


Things are great again! No? You might have missing references still:



Just use your NuGet package manager to reinstall those:



Feeling better? Great :-)


Comments

Popular posts from this blog

Auto Mapper and Record Types - will they blend?

Unit testing your Azure functions - part 2: Queues and Blobs

Testing WCF services with user credentials and binary endpoints