I expected that. VS90COMNTOOLS... is an known environment variable but it needs to go up one and over to get the right place. We could make a VSDEVENVPATH from the VS90COMNTOOLS on the fly. I was too tired to think about this last night....
cd /d %VS90COMNTOOLS% cd ..\ide set VSDEVENVPATH=%cd% This works on my 32 bit Vista laptop here at home. I will test it on the box at work in an hour or so. drew ________________________________________ From: Ben Dewey [[email protected]] Sent: Friday, April 24, 2009 7:05 AM To: '[email protected]' Subject: RE: svn commit: r768139 - /incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd Drew, This build script worked for me. Thanks. I did have to change the path to c:\Program Files\MSVS... I wonder if this is a better default. Do you think more people out there are running x64 or x86? -Ben -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Thursday, April 23, 2009 11:06 PM To: [email protected] Subject: svn commit: r768139 - /incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd Author: drewbai Date: Fri Apr 24 03:06:11 2009 New Revision: 768139 URL: http://svn.apache.org/viewvc?rev=768139&view=rev Log: STONEHENGE DOTNET BUILDER ======================================================================= Assumptions - This cmd file is being starting in [dotnet] dir - Run in Administrator mode - SET buildPath=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE Suggested Upgrades :) 1. We should add logging 2. Add release logic and copy to a release folder Known Issues 1. ON some VMs There will be errors on closing after BSL and trade_client. Does not effect functionality of the build Added: incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd Added: incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd?rev=768139&view=auto ============================================================================== --- incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd (added) +++ incubator/stonehenge/trunk/stocktrader/dotnet/BuildDotNet.cmd Fri Apr 24 03:06:11 2009 @@ -0,0 +1,59 @@ +...@echo STONEHENGE DOTNET BUILDER +...@echo ======================================================================= +...@echo Assumptions +...@echo - This cmd file is being starting in [dotnet] dir +...@echo - Run in Administrator mode +...@echo - SET buildPath=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE + +...@echo Suggested Upgrades :) +...@echo 1. We should add logging +...@echo 2. Add release logic and copy to a release folder + + +...@echo Known Issues +...@echo 1. ON some VMs There will be errors on closing after BSL and trade_client. Does not effect functionality of the build + + +...@pause + + +...@echo Update the source. This assumes you have your Tortose/SVN functional. +TortoiseProc.exe /command:update /path:"." /closeonend:3 + +...@echo Set path to your visual studio +set buildPath=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE + +...@rem If you need help with REM Help: >"%buildPath%\devenv" /? +...@rem Command line usage: +...@rem devenv solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [ /projectconfig name ] ] + +...@echo Clean order_processor +cd .\order_processor +"%buildPath%\devenv.com" OrderProcessorSolution.sln /Clean + +...@echo Build order_processor +"%buildPath%\devenv.com" OrderProcessorSolution.sln /Build + +...@echo Clean business_service +cd ..\business_service +"%buildPath%\devenv.com" BusinessServiceSolution.sln /Clean + +...@echo Build business_service +"%buildPath%\devenv.com" BusinessServiceSolution.sln /Build + +...@echo Clean trader_client +cd ..\trader_client +"%buildPath%\devenv.com" StockTraderWebAppSolution.sln /Clean + +...@echo Build trader_client +"%buildPath%\devenv.com" StockTraderWebAppSolution.sln /Build + + +...@cd .. + +...@echo Done! +...@pause + + + +
