@REM @REM Licensed to the Apache Software Foundation (ASF) under one or more @REM contributor license agreements. See the NOTICE file distributed with @REM this work for additional information regarding copyright ownership. @REM The ASF licenses this file to You under the Apache License, Version 2.0 @REM (the "License"); you may not use this file except in compliance with @REM the License. You may obtain a copy of the License at @REM @REM http://www.apache.org/licenses/LICENSE-2.0 @REM @REM Unless required by applicable law or agreed to in writing, software @REM distributed under the License is distributed on an "AS IS" BASIS, @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @REM See the License for the specific language governing permissions and @REM limitations under the License. @REM @echo STONEHENGE DOTNET BUILDER @echo ======================================================================= @echo Assumptions @echo - This cmd file is being starting in [dotnet] dir @echo - Run in Administrator mode @Echo Suggested Upgrades :) @Echo 1. We should add logging @Echo 2. Add release logic and copy to a release folder @pause @echo Update the source. This assumes you have your Tortose/SVN functional. TortoiseProc.exe /command:update /path:"." /closeonend:3 @echo Build the solutions. This assumes you have your .Net3.5 installed. :: delims is a TAB followed by a space @FOR /F "tokens=2* delims= " %%A IN ( 'REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\3.5" /v MSBuildToolsPath' ) DO SET MSBuildToolsPath=%%B @ECHO MSBuildToolsPath=%MSBuildToolsPath% cd .\setup_utilities\SetupActions @echo Build SetupActions "%MSBuildToolsPath%msbuild" SetupActions.sln /t:Clean /p:Configuration=Debug "%MSBuildToolsPath%msbuild" SetupActions.sln /t:Clean /p:Configuration=release "%MSBuildToolsPath%msbuild" SetupActions.sln /t:Build /p:Configuration=Debug;Platform="Any CPU" "%MSBuildToolsPath%msbuild" SetupActions.sln /t:Build /p:Configuration=release;Platform="Any CPU" cd ..\..\order_processor @echo Build order_processor "%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Clean /p:Configuration=Debug "%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Clean /p:Configuration=release "%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU" "%MSBuildToolsPath%msbuild" OrderProcessorSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU" cd ..\business_service @echo Build business_service "%MSBuildToolsPath%msbuild" BusinessServiceSolution.sln /t:Clean /p:Configuration=Debug "%MSBuildToolsPath%msbuild" BusinessServiceSolution.sln /t:Clean /p:Configuration=release "%MSBuildToolsPath%msbuild" BusinessServiceSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU" "%MSBuildToolsPath%msbuild" BusinessServiceSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU" cd ..\trader_client @echo Build trader_client "%MSBuildToolsPath%msbuild" StockTraderWebAppSolution.sln /t:Clean /p:Configuration=Debug "%MSBuildToolsPath%msbuild" StockTraderWebAppSolution.sln /t:Clean /p:Configuration=release "%MSBuildToolsPath%msbuild" StockTraderWebAppSolution.sln /t:Build /p:Configuration=Debug;Platform="Any CPU" "%MSBuildToolsPath%msbuild" StockTraderWebAppSolution.sln /t:Build /p:Configuration=release;Platform="Any CPU" @cd .. @Echo Done! @pause