NuGet Package Restore
Does NuGet Package restore work with AppVeyor?
http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages
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
Support Staff 1 Posted by Feodor Fitsner on Jun 12, 2013 @ 06:10 PM
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 Posted by jrummell on Jun 17, 2013 @ 11:30 PM
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
Support Staff 3 Posted by Feodor Fitsner on Jun 18, 2013 @ 03:13 PM
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 Posted by jrummell on Jun 18, 2013 @ 04:04 PM
Yes, workaround #3 got my build working in AppVeyor. Thanks!
Support Staff 5 Posted by Feodor Fitsner on Jun 18, 2013 @ 04:09 PM
Thank you for the update!
Feodor Fitsner closed this discussion on Jun 18, 2013 @ 04:09 PM.