NuGet Package Restore

jrummell's Avatar

jrummell

Jun 12, 2013 @ 05:56 PM

  1. Support Staff 1 Posted by Feodor Fitsner on Jun 12, 2013 @ 06:10 PM

    Feodor Fitsner's Avatar

    Hi John,

    When build scenario is "Visual Studio solution" AppVeyor automatically adds "EnableNuGetPackageRestore=true" environment variable thus enabling packages restore during the build.

    However, to make this working on a build server you have to "Enable NuGet Package Restore" for the solution (right-click on the solution in VS.NET) and then make sure ".nuget" folder is added into source control.

    Please let me know if it works for you.

    -Feodor

  2. 2 Posted by jrummell on Jun 17, 2013 @ 11:30 PM

    jrummell's Avatar

    Thanks, Feodor.

    I did enable package restore in Visual Studio, but it seems there's a NuGet issue with packages that add target file imports to project files. Workarounds are discussed at http://blogs.msdn.com/b/dotnet/archive/2013/06/12/nuget-package-restore-issues.aspx and https://connect.microsoft.com/VisualStudio/feedback/details/788981/microsoft-bcl-build-targets-causes-project-loading-to-fail

  3. Support Staff 3 Posted by Feodor Fitsner on Jun 18, 2013 @ 03:13 PM

    Feodor Fitsner's Avatar

    Thanks for the tip! I'm looking into workaround #2 from the blog post (calling nuget.exe before build) - anyway right now we analyze solution so we know everything about its projects. You could try workaround #3 to get built on AppVeyor today.

    -Feodor

  4. 4 Posted by jrummell on Jun 18, 2013 @ 04:04 PM

    jrummell's Avatar

    Yes, workaround #3 got my build working in AppVeyor. Thanks!

  5. Support Staff 5 Posted by Feodor Fitsner on Jun 18, 2013 @ 04:09 PM

    Feodor Fitsner's Avatar

    Thank you for the update!

  6. Feodor Fitsner closed this discussion on Jun 18, 2013 @ 04:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac