From 101051684c43edce12273c893430bc4fc3cb2a40 Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Sun, 6 Jun 2021 21:19:44 +0800 Subject: [PATCH] Add BuildAllTargets script in NSudo .NET SDK. --- Source/MSIL/BuildAllTargets.cmd | 34 ++++++++++++++++++++++ Source/MSIL/BuildAllTargets.proj | 48 ++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 Source/MSIL/BuildAllTargets.cmd create mode 100644 Source/MSIL/BuildAllTargets.proj diff --git a/Source/MSIL/BuildAllTargets.cmd b/Source/MSIL/BuildAllTargets.cmd new file mode 100644 index 00000000..b61653f2 --- /dev/null +++ b/Source/MSIL/BuildAllTargets.cmd @@ -0,0 +1,34 @@ +@rem +@rem PROJECT: Mouri Internal Library Essentials +@rem FILE: BuildAllTargets.cmd +@rem PURPOSE: Build all targets script for Visual Studio .NET Project +@rem +@rem LICENSE: The MIT License +@rem +@rem DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) +@rem + +@setlocal +@echo off + +rem Change to the current folder. +cd "%~dp0" + +rem Remove the output folder for a fresh compile. +rd /s /q Output + +set VisualStudioInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer" +if %PROCESSOR_ARCHITECTURE%==x86 set VisualStudioInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer" + +pushd %VisualStudioInstallerFolder% +for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.NetCore.Component.SDK -property installationPath`) do ( + set VisualStudioInstallDir=%%i +) +popd + +call "%VisualStudioInstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86 + +rem Build all targets +MSBuild -m BuildAllTargets.proj + +@endlocal \ No newline at end of file diff --git a/Source/MSIL/BuildAllTargets.proj b/Source/MSIL/BuildAllTargets.proj new file mode 100644 index 00000000..825d5d1f --- /dev/null +++ b/Source/MSIL/BuildAllTargets.proj @@ -0,0 +1,48 @@ + + + + + $(MSBuildThisFileDirectory)*.sln + + + + Configuration=Debug;Platform=Any CPU + + + Configuration=Release;Platform=Any CPU + + + + + + + + + + + + \ No newline at end of file