1 @if "%_echo%" neq "on" echo off
2 setlocal EnableDelayedExpansion
4 set "__ProjectDir=%~dp0"
5 set packagesLog=build-packages.log
6 set binclashLoggerDll=%~dp0Tools\net45\Microsoft.DotNet.Build.Tasks.dll
7 set binclashlog=%~dp0binclash.log
8 echo Running build-packages.cmd %* > %packagesLog%
10 set options=/nologo /maxcpucount /v:minimal /clp:Summary /nodeReuse:false /flp:v=detailed;Append;LogFile=%packagesLog% /l:BinClashLogger,%binclashLoggerDll%;LogFile=%binclashlog% /p:FilterToOSGroup=Windows_NT
13 if /I [%1] == [/?] goto Usage
14 if /I [%1] == [/help] goto Usage
16 REM ensure that msbuild is available
17 echo Running init-tools.cmd
18 call %~dp0init-tools.cmd
20 set __msbuildArgs="%__ProjectDir%\src\.nuget\Microsoft.NETCore.Runtime.CoreClr\Microsoft.NETCore.Runtime.CoreCLR.builds" !allargs!
21 echo msbuild.exe %__msbuildArgs% !options! >> %packagesLog%
22 call msbuild.exe %__msbuildArgs% !options!
23 if NOT [!ERRORLEVEL!]==[0] (
24 echo ERROR: An error occurred while building packages, see %packagesLog% for more details.
28 set __msbuildArgs="%__ProjectDir%\src\.nuget\Microsoft.NETCore.Jit\Microsoft.NETCore.Jit.builds" !allargs!
29 echo msbuild.exe %__msbuildArgs% !options! >> %packagesLog%
30 call msbuild.exe %__msbuildArgs% !options!
31 if NOT [!ERRORLEVEL!]==[0] (
32 echo ERROR: An error occurred while building packages, see %packagesLog% for more details.
37 echo Done Building Packages.
42 echo Builds the NuGet packages from the binaries that were built in the Build product binaries step.
43 echo The following properties are required to define build architecture
44 echo /p:__BuildArch=[architecture] /p:__BuildType=[configuration]
45 echo Architecture can be x64, x86, arm, or arm64
46 echo Configuration can be Release, Debug, or Checked