0023095: Porting demo and samples on OCCT 6.5.3
[occt.git] / samples / CSharp / Run_MSVC.bat
1 @echo off
2 rem Launch MS VC with environment prepared for building OCCT C# sample
3
4 rem Set build environment 
5 call %~dp0..\..\ros\env_build.bat vc8 win32
6
7 rem Define path to project file
8 set PRJFILE=%~dp0IE\IE.sln
9
10 rem Launch Visual Studio - either professional (devenv) or Express, as available
11 if exist %DevEnvDir%\devenv.exe (
12     start %DevEnvDir%\devenv.exe %PRJFILE% /useenv
13 ) else if exist %DevEnvDir%\VCExpress.exe (
14     start %DevEnvDir%\VCExpress.exe %PRJFILE% /useenv
15 ) else (
16     echo Error: Could not find MS Visual Studio ^(%VCVER%^)
17     echo Check relevant environment variable ^(e.g. VS80COMNTOOLS for vc8^)
18 )
19