Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created November 19, 2016 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/52811ac9f2bb3e5339795adf9ae27f6c to your computer and use it in GitHub Desktop.
Save angelovstanton/52811ac9f2bb3e5339795adf9ae27f6c to your computer and use it in GitHub Desktop.
<RestorePackages>true</RestorePackages>
...
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
...
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment