Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Frequently Asked Questions > Troubleshooting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-19-2010, 04:56 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 4,998
Errors when building Visual Studio projects in Visual Build but not the VS IDE

It is Visual Studio (msbuild/devenv) that actually performs the building of a Visual Studio solution or project (and is reporting the error), not Visual Build itself. Building a VS project from the command-line is not identical to building in the VS IDE. If building via MSBuild does not work, try using devenv (enter devenv in the Override field on the Options tab), as this will be closer to what the IDE does when building (and MSBuild is not able to build solutions containing Setup and Deployment projects). Even then, we have heard of situations where building from the command-line doesn't work even when building in the IDE does. You can check the Log the command-line checkbox on the Advanced tab, rebuild the step, and provide the msbuild/devenv command to MS when submitting a support incident.

Alternatively, to build solutions containing C++ projects with MSBuild, the Visual Studio environment matching the solution file needs to be initialized by either

1) starting Visual Build (start visbuildpro) from a Visual Studio Command Prompt

or

2) running the VS environment batch file from the Command to run before main command field on the Advanced tab of the Make VS action:

VS 2008:
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86

VS 2010:
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86

VS 2012:
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86

http://msdn.microsoft.com/en-us/libr...vs.110%29.aspx
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright © 1999-2013 Kinook Software, Inc.