tags:

views:

102

answers:

0

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 (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Build Engine Version 2.0.50727.4927

[Microsoft .NET Framework, Version 2.0.50727.4927]

Copyright (C) Microsoft Corporation 2005. All rights reserved.

I found that the vcbuild.exe always call the "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig .."

the problem is how can I change the Framework version to v3.5? I found my project works fine with the v3.5 but it's broken in the v2.0.50727.

I try to use msbuild.exe instead of vcbuild.exe, everything goes well, I just don't understand how can I make it with the vcbuild.exe?

win7+vs2005+vs2008 installed.