Specify a framework version for devenv.exe

G

Guest

Hi,

at the moment I have a batch file which builds a lot of projects. A typical
line in the batch file would be:

CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv.exe" Report.Change.sln /rebuild Debug /out
Report.Change.plg

Now that I have installed VS 2005 alongside 2003 I find that it is using
framework 2.0 rather than 1.1.

Is there anyway to specify the version of the framework to use until we are
ready for the full upgrade?
 
A

Andreas Mueller

cashdeskmac said:
Hi,

at the moment I have a batch file which builds a lot of projects. A typical
line in the batch file would be:

CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv.exe" Report.Change.sln /rebuild Debug /out
Report.Change.plg

Now that I have installed VS 2005 alongside 2003 I find that it is using
framework 2.0 rather than 1.1.

Is there anyway to specify the version of the framework to use until we are
ready for the full upgrade?

Change your batch file to the following to build with VS2003:

call "%vs71comntools%vsvars32.bat"
call devenv.exe Report.Change.sln /rebuild Debug /out Report.Change.plg


It will set all necessary environment variables. The %vs71comntools%
variable itself should be set by the VS installation and will expand to
something like "%ProgramFiles%\Microsoft Visual Studio .NET
2003\Common7\Tools\", depending on your installation directory.

%vs80ComnTools% can be used for VS2005, however you should consider to
use msbuild instead then:

call "%vs80comntools%vsvars32.bat"
call msbuild Report.Change.sln /t:Rebuild /p:Configuration=Debug

HTH,
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top