xamarin-android/build.cmd

32 строки
1.0 KiB
Batchfile

@echo off
FOR /F "tokens=1 delims=" %%F IN ('.\build-tools\scripts\vswhere.cmd') DO SET result=%%F
2>NUL CALL "%result%\Common7\Tools\VsDevCmd.bat"
IF ERRORLEVEL 1 CALL:FAILED_CASE
2>NUL CALL :%1_CASE
IF ERRORLEVEL 1 CALL :DEFAULT_CASE
:Prepare_CASE
dotnet msbuild Xamarin.Android.sln -t:Prepare -nodeReuse:false
GOTO END_CASE
:PrepareExternal_CASE
dotnet build Xamarin.Android.sln -t:PrepareExternal -nodeReuse:false
GOTO END_CASE
:Build_CASE
dotnet-local.cmd build Xamarin.Android.sln -nodeReuse:false
GOTO END_CASE
:Pack_CASE
dotnet-local.cmd build Xamarin.Android.sln -t:PackDotNet -nodeReuse:false
GOTO END_CASE
:DEFAULT_CASE
dotnet msbuild Xamarin.Android.sln -t:Prepare -nodeReuse:false
dotnet-local.cmd build Xamarin.Android.sln -nodeReuse:false
dotnet-local.cmd build Xamarin.Android.sln -t:PackDotNet -nodeReuse:false
GOTO END_CASE
:FAILED_CASE
echo "Failed to find an instance of Visual Studio. Please check it is correctly installed."
GOTO END_CASE
:END_CASE
GOTO :EOF