18 lines
632 B
Batchfile
18 lines
632 B
Batchfile
@echo off
|
|
echo Building AGV C# HMI Project...
|
|
|
|
REM Check if Visual Studio 2022 is installed
|
|
if not exist "C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe" (
|
|
echo Visual Studio 2022 Professional not found!
|
|
echo Please install Visual Studio 2022 Professional or update the MSBuild path.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Set MSBuild path
|
|
set MSBUILD="C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe"
|
|
|
|
REM Build Debug x64 configuration
|
|
%MSBUILD% AGVCSharp.sln -property:Configuration=Debug -property:Platform=x86 -verbosity:quiet -nologo
|
|
|
|
pause |