msbuild for all Visual Studio Projects

I want to use msbuild to build my project files on a build lab machine that does not have VS installed.
I  have make some test with Visual Basic and C# project without any problem.
but with c++ it 'seems to be, a little more difficult.
Msbuild refused the Release option configuration :
If i use
msbuild myproject.vcproj /t:Rebuild
that build both Release and Debug version of my project
I want only release version, so I try
msbuild myproject.vcproj /property:Configuration=Debug /t:Rebuild.
with the same result.
Reading info on the Net it seems that Msbuild doesn't work correctly whith c++ project
Where is the truth   
Is the use of MSbuild with c++ project fully supported
Best Regard



Answer this question

msbuild for all Visual Studio Projects

  • CHASE10541

    Hi Laurent,

    The state of things for Whidbey is that unfortunately VC projects are not in the MSBuild format and MSBuild doesn't support building them natively. However, we will ship with a set of tasks and engine side support for building VC projects by invoking VCBuild.exe (you'll need to install .NET SDK to get it).

    As you have seen yourself, in Beta2 the level of support for VC projects is very limited. We're working to improve it for RTM - the plan is that you should be able to build VS solutions containing VC projects and/or VC projects individually, but the exact level of support for project-to-project references still remains to be seen. We are aware that this is not an optimal solution and if we can't get it 100% right for Whidbey, we will investigate possible ways to improve the experience before the next big release.

    I'm sorry I can't offer you a better answer. It would help if you shared with us what kind of solutions you intend to develop/build - what kind of projects (C#, managed C++, native C++) and what kind of dependencies/references between them. Just the big picture, the more real world data we have the better. If you don't feel like describing this on a public forum, feel free to send us mail at MSBuild@microsoft.com.

    thanks,
    Lukasz

  • msbuild for all Visual Studio Projects