@echo off echo Building TransportPlugin... REM Set MSBuild path (check Community edition first) set MSBUILD_PATH="C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" REM Check if MSBuild exists, try alternative paths if not exist %MSBUILD_PATH% ( set MSBUILD_PATH="C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe" ) if not exist %MSBUILD_PATH% ( echo MSBuild not found. Please install Visual Studio 2022 or Build Tools. echo dotnet build is not compatible with .NET Framework WPF projects. exit /b 1 ) echo Using MSBuild: %MSBUILD_PATH% REM Build the project echo Building project... %MSBUILD_PATH% "TransportPlugin.csproj" /p:Configuration=Release /p:Platform=x64 /verbosity:minimal :end if %ERRORLEVEL% EQU 0 ( echo Build successful! ) else ( echo Build failed! )