NuGet Package Restore

jrummell's Avatar


12 Jun, 2013 05:56 PM

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Jun, 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.


  2. 2 Posted by jrummell on 17 Jun, 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 and

  3. Support Staff 3 Posted by Feodor Fitsner on 18 Jun, 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.


  4. 4 Posted by jrummell on 18 Jun, 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 18 Jun, 2013 04:09 PM

    Feodor Fitsner's Avatar

    Thank you for the update!

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

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

Keyboard shortcuts


? 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