Solved

Build VS2015 project in bat command

Posted on 2016-09-17
3
69 Views
Last Modified: 2016-09-24
I used to run build the solution using below command

CALL %WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBuild /t:Build /p:VisualStudioVersion="14.0" "C:/Project/p2/test.sln" /m

But this command get failed...because the solution contain the nuget .It is not getting restored automatically while build solution through above command.
Can anyone have solution for this.?
0
Comment
Question by:Monica P
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
Comment Utility
You have to restore nugets explicitly before MCBuild, e.g.

"C:\Program Files (x86)\MSBuild\nuget\nuget.exe" restore YourSolution3.0.sln
0
 
LVL 10

Author Comment

by:Monica P
Comment Utility
i cannot find nuget folder in the msbuild Folder.So it throws error executing this command..
0
 
LVL 41

Assisted Solution

by:pcelba
pcelba earned 500 total points
Comment Utility
So you have to download Nuget command line utility from e.g. this link: https://docs.nuget.org/consume/installing-nuget

You may download whatever version will work for you.

Install it in any folder which you may then use before the MSBuild.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now