This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BuildAllTargets script in NSudo .NET SDK.
- Loading branch information
1 parent
1735583
commit 1010516
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
PROJECT: Mouri Internal Library Essentials | ||
FILE: BuildAllTargets.proj | ||
PURPOSE: Build all targets script for Visual Studio .NET Project | ||
LICENSE: The MIT License | ||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) | ||
--> | ||
<Project | ||
DefaultTargets="Restore;Build" | ||
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<SolutionPath>$(MSBuildThisFileDirectory)*.sln</SolutionPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Debug;Platform=Any CPU</AdditionalProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Release;Platform=Any CPU</AdditionalProperties> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Target Name="Restore" > | ||
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Restore" | ||
StopOnFirstFailure="True" | ||
Properties="PreferredToolArchitecture=x64" /> | ||
</Target> | ||
<Target Name="Build" > | ||
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Build" | ||
BuildInParallel="True" | ||
StopOnFirstFailure="True" | ||
Properties="PreferredToolArchitecture=x64" /> | ||
</Target> | ||
<Target Name="Rebuild" > | ||
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Rebuild" | ||
BuildInParallel="True" | ||
StopOnFirstFailure="True" | ||
Properties="PreferredToolArchitecture=x64" /> | ||
</Target> | ||
</Project> |