@echo off
cd /d "%~dp0"
set "PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\Installer"
call "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat"
if errorlevel 1 (
  echo [ERROR] vcvars64.bat not found. Install "Desktop development with C++" workload.
  exit /b 1
)
dotnet publish -c Release
