3 Setlocal EnableDelayedExpansion
6 call "%~dp0env.bat" %1 %2 %3
8 if NOT DEFINED DXSDK_DIR (
9 if /I "%VCVER%" == "vc9" (
10 echo ERROR: DirectX SDK is required in order to build the sample but it is not found in your system. Please install DirectX SDK and retry.
13 if /I "%VCVER%" == "vc10" (
14 echo ERROR: DirectX SDK is required in order to build the sample but it is not found in your system. Please install DirectX SDK and retry.
19 rem Define path to project file
20 set "PRJFILE=%~dp0\CSharp_D3D.sln"
22 rem Launch Visual Studio - either professional (devenv) or Express, as available
23 if exist "%DevEnvDir%\devenv.exe" (
24 start "%DevEnvDir%\devenv.exe" "%PRJFILE%"
25 ) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe" (
26 start "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
28 echo Error: Could not find MS Visual Studio ^(%VCVER%^)
29 echo Check relevant environment variable ^(e.g. VS100COMNTOOLS for vc10^)