Automatic Package Restore

jeremiah's Avatar

jeremiah

11 Dec, 2014 12:47 AM

I am trying to eliminate my MSBuild-Integrated .nuget folder (with NuGet.targets, NuGet.config, NuGet.exe) and switch to automatic package restore. I followed the instructions here:

http://docs.nuget.org/docs/workflows/migrating-to-automatic-package-restore

And read about support here:

http://www.xavierdecoster.com/migrate-away-from-msbuild-based-nuget-package-restore

My build works perfectly with Visual Studio, however, my pull request tried to build on AppVeyor and I got missing references. It seems like AppVeyor doesn't support the new automatic package restore. Is this supported? How can I make automatic package restore work?

  1. Support Staff 1 Posted by Feodor Fitsner on 11 Dec, 2014 12:55 AM

    Feodor Fitsner's Avatar

    In AppVeyor environment you should add "nuget restore" command into "Before build" scripts.

    -Feodor

  2. Support Staff 2 Posted by Feodor Fitsner on 11 Dec, 2014 12:57 AM

    Feodor Fitsner's Avatar

    Just to clarify - automatic restore in Visual Studio is part of NuGet VS.NET extension and on build server you're obviously not running IDE.

    -Feodor

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

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