Dajbych.net


Visual Studio: Please Restore the MSBuild Nuget Package

, a minute to read

service fabric logo

I recently ran into a problem after upgrading my Visual Studio Service Fabric project from version 3.1.283 to 3.2.178. The build has been failing, and the advice in the error message was not helpful. Something in the build system was apparently changed, and the update script failed to upgrade the solution successfully. I created a new Service Fabric project and compared what was changed in the latest version.

The original compiler error message was:

Unable to find the '..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.6\build\Microsoft.VisualStudio.Azure.Fabric.Application.props' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' NuGet package.

The fix is relatively easy. You must: