简体   繁体   中英

Build API - Restore nuget packages

I created an app that builds all the solutions I have using the Build API ( https://msdn.microsoft.com/en-us/library/dn715758(v=vs.121).aspx ).

The problem I am facing, is that it does not trigger the nuget package restore. Which means that if it's the first time someone is building the source code, or a package has been updated by someone else, it does not automatically update/trigger the package restore on build.

Can't find anything in the documentation, maybe someone else knows something?

In the solution explorer (where you see your solution and all projections) right click on the solution , not on the project.

In the context menu you'll see

Enable Nuget Package Restore

I believe you will have to execute the restore command separately.

https://docs.nuget.org/consume/command-line-reference#restore-command

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM