vcbuild

project does not contain a configuration called 'Debug|x64'

Hi, I'm trying to build a C++ project with a build configuration platform of x64. It's on a new machine running a 64 bit Windows Server 2008. When I open the build configuration manager in VS, I can't chose or create the x64 platform and the project gets skipped. When I try to build it with MSBuild I get the error: VCBLD0004: Project 'M...

How do I write a build batch script that runs vcvars32.bat, and then continues with the build?

I want to write a simple batch script that loads the Visual Studio build environment using vcvars32.bat and then continue with the build, using vcbuild. However, my script won't execute past the invocation of vcvars32.bat. The last output I get is: Setting environment for using Microsoft Visual Studio 2008 x86 tools. As you can see I'...

Is there a way to stop vcbuild's after the first failure?

I am running a vcbuild process as part of a buildbot. I would like the build to stop on the first failure, instead of continuing to build additional projects. It looks like msbuild has a StopOnFirstFailure property, but I do not know if this works with vcbuild or how to use it. ...

set vcbuild environment through msbuild

I have an msbuild project file that is used for building several C++ projects (*.vcproj). Here's a part of a typical project file, in which global environment variables for the build are overridden as properties: <PropertyGroup> <MYBINDIR>d:\buildsysroot\bin</MYBINDIR> <MYLIBDIR>d:\buildsysroot\lib</MYLIBDIR> ... </PrpertyGroup> ...

Optional environment variables with vcproj/vsprops

Is there any way to make an environment variable substituion in a project file (with or without vsprops) that, if the variable is not found, is substituted instead with a default value? I haven't found any way to do this, because everything seems to override environment variables. EDIT: I need this to work for a property, not for an env...

buildbot C++ build on Windows: use devenv.com, vcbuild.exe, or MSBuild.exe?

My buildbot has been running for 3 years using devenv.com to compile the projects on Windows. Now devenv.com has troubles to build for 64 bits versions: passing the configuration as "Debug|x64" generates command line errors because of the pipe character. Escaping and enclosing between quotes result into other errors, some because of the...

VCBuild link errors from command line

I am using external libraries from my VC Express project. I am trying to automate my build through the command line, but it seems VCBuild does not recognize the additional directories I saved/added for the external library's include and lib directories. Is there a workaround to this? ...

conditionals for C++ using MSBuild/vsbuild?

I have a C++ project in Visual Studio 2008 and I'd like to be able to compile several versions from the command line, defining conditional variables (aka #define). If it were just a single file to compile I'd use something like cl /D, but this is complex enough that I would like to be able to use VS's other features like the build order ...

.net framework sdk version(csc.exe) using vcbuild.exe on the command line.

I create a c# class library project named: testVcBuild, then use vcbuild.exe to build the project in the command line like: C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages>vcbuild testVcBuild.csproj "Debug|Win32" the out put shows: Microsoft (R) Visual C++ Project Builder - Command Line Version 9.00.21022 Copyright ...

Adding Preprocessor directive dynamically from commandline build VS2008

Hi all, I am using VS2008, and developing C/C++ projects. I am using .bat file to build my projects from commandline (VC2k8 command prompt). I need a way to include preprossor directive dynamically at build time. I am using devenv to build from command line. >devenv my\project\path\myproject.sln /build release > logs\build.log Actua...