Skip to content

Commit a63992c

Browse files
committed
Update BuildToolsVersion to 1021-01
Exit build.cmd with exit code Add useServerGC parsing to build.sh Moving installed packages out of bin dir This was done to allow Packer.exe to work. Changing install path to non-conditioned propertygroup Build native packages after managed build of binaries This is because the build packages step invokes the Run tool to determine the FilterToOSGroup on each platform respectively.
1 parent 263c618 commit a63992c

File tree

8 files changed

+36
-6
lines changed

8 files changed

+36
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ ClientBin/
173173
node_modules/
174174
*.metaproj
175175
*.metaproj.tmp
176+
bin.localpkg/
176177

177178
# RIA/Silverlight projects
178179
Generated_Code/

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if NOT [%ERRORLEVEL%]==[0] exit /b 1
99
call %~dp0build-managed.cmd -FilterToOSGroup=Windows_NT %*
1010
if NOT [%ERRORLEVEL%]==[0] exit /b 1
1111
call %~dp0build-tests.cmd %*
12-
if NOT [%ERRORLEVEL%]==[0] exit /b 1
12+
exit /b %ERRORLEVEL%
1313

1414
:Usage
1515
echo.

build.proj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@
227227
<!-- Override CleanAllProjects from dir.traversal.targets and just remove the full BinDir -->
228228
<Target Name="CleanAllProjects">
229229
<RemoveDir Directories="$(BinDir)" />
230+
<!-- Temporarily outside BinDir -->
231+
<RemoveDir Directories="$(PackageInstallPath)" />
230232
</Target>
231233

232234
<!-- Hook that can be used to insert custom build tasks to the build process such as setup and/or cleanup tasks -->

build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,37 @@ fi
2323

2424
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
2525

26+
__ServerGC=0
27+
28+
while :; do
29+
if [ $# -le 0 ]; then
30+
break
31+
fi
32+
33+
lowerI="$(echo $1 | awk '{print tolower($0)}')"
34+
case $lowerI in
35+
useservergc)
36+
__ServerGC=1
37+
;;
38+
*)
39+
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
40+
esac
41+
42+
shift
43+
done
44+
45+
export CORECLR_SERVER_GC="$__ServerGC"
46+
2647
"$__scriptpath/build-native.sh" $*
2748
if [ $? -ne 0 ];then
2849
exit 1
2950
fi
3051

52+
"$__scriptpath/build-packages.sh" -DisableManagedPackage $*
53+
if [ $? -ne 0 ];then
54+
exit 1
55+
fi
56+
3157
"$__scriptpath/build-managed.sh" $*
3258
if [ $? -ne 0 ];then
3359
exit 1

dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<!-- Full package version strings that are used in other parts of the build. -->
3535
<PropertyGroup>
36-
<AppXRunnerVersion>1.0.3-prerelease-00925-01</AppXRunnerVersion>
36+
<AppXRunnerVersion>1.0.3-prerelease-00921-01</AppXRunnerVersion>
3737
<XunitPerfAnalysisPackageVersion>1.0.0-alpha-build0040</XunitPerfAnalysisPackageVersion>
3838
</PropertyGroup>
3939

dir.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
<!-- Enable the analyzers for this repo -->
6868
<PropertyGroup>
6969
<EnableDotnetAnalyzers Condition="'$(EnableDotnetAnalyzers)'==''">true</EnableDotnetAnalyzers>
70+
<!-- Temporarily outside BinDir -->
71+
<PackageInstallPath>$(ProjectDir)bin.localpkg/</PackageInstallPath>
7072
</PropertyGroup>
7173

7274
<!-- Provides package dependency version properties and verification/auto-upgrade configuration -->
@@ -84,7 +86,6 @@
8486

8587
<PropertyGroup Condition="'$(BuildTestsAgainstPackages)' == 'true'">
8688
<!-- Packaging.targets is only included when full build.cmd is invoked. -->
87-
<PackageInstallPath>$(BinDir)localpkg/</PackageInstallPath>
8889
</PropertyGroup>
8990

9091
<!-- Import packaging props -->

src/Native/pkg/runtime.native.System.Data.SqlClient.sni/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"runtime.win7-x64.runtime.native.System.Data.SqlClient.sni": "4.4.0-beta-24627-00",
66
"runtime.win7-x86.runtime.native.System.Data.SqlClient.sni": "4.4.0-beta-24627-00",
7-
"runtime.win10-arm64.runtime.native.System.Data.SqlClient.sni": "4.3.0-beta-24716-00"
7+
"runtime.win10-arm64.runtime.native.System.Data.SqlClient.sni": "4.3.0-beta-24722-00"
88
}
99
}
1010
}

src/tests.builds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
99
<ItemGroup>
1010
<Project Include="*\tests\**\*.builds">
11-
<BuildAllOSGroups Condition="'$(OSGroup)' != '' OR '$(FilterToOSGroup)' != '' ">false</BuildAllOSGroups>
12-
<FilterToOSGroup Condition="'$(_OriginalOSGroup)' == '' AND '$(DontFilterOsGroup)' != 'true'">$(OSEnvironment)</FilterToOSGroup>
11+
<BuildAllOSGroups Condition="'$(OSGroup)' != '' OR '$(FilterToOSGroup)' != ''">false</BuildAllOSGroups>
12+
<FilterToOSGroup Condition="'$(_OriginalOSGroup)' == ''">$(OSEnvironment)</FilterToOSGroup>
1313
</Project>
1414
</ItemGroup>
1515

0 commit comments

Comments
 (0)