Skip to content

Commit 1bcf041

Browse files
authored
Update to 3.0 preview4 manifest. (#1022)
* Update to 3.0 preview4 manifest. core-sdk build 20190416.21, BAR build 8348. * Update patches * Allow writing restore sources and package versions to the same props file. Newer Arcade versions eliminated the separate PackageVersion.props file. Since this will go away in the near future with coherency changes, as a temporary fix we write package versions as well as the restore sources to the RestoreSources.props file, which is still used by Arcade. * Update BuildTools and Arcade versions. * Update preview version tag. * Add patch to allow separate tool and SDK directories in CoreCLR. * Update F# for build changes. * Update Arcade build for new Arcade. * Use 3.0 SDK in CLI and fix package output path. * Core-setup always uses a 10.12 RID for OSX when non-portable.
1 parent 924c4be commit 1bcf041

File tree

128 files changed

+1884
-1781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1884
-1781
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ bld/
2525
msbuild.log
2626
msbuild.err
2727
msbuild.wrn
28+
*.binlog
2829

2930
# Cross building rootfs
3031
cross/rootfs/

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0-preview1-03715-01
1+
3.0.0-preview4-03906-01

build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@ $SDKPATH = "$CLIPATH\sdk\$SdkVersion"
4343

4444
$captured_args = $args
4545

46+
if (-Not ($captured_args.Contains("/t:") -or $captured_args.Contains("RootRepo")))
47+
{
48+
Exec-Block { & "$CLIPATH\dotnet" "$SDKPATH/MSBuild.dll" "$SCRIPT_ROOT/build.proj" /flp:v=diag /bl /clp:v=m /p:RootRepo=arcade $captured_args } | Out-Host
49+
taskkill /f /im dotnet.exe
50+
}
4651
Exec-Block { & "$CLIPATH\dotnet" "$SDKPATH/MSBuild.dll" "$SCRIPT_ROOT/build.proj" /flp:v=diag /bl /clp:v=m $captured_args } | Out-Host

build.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,32 @@ source "$SCRIPT_ROOT/init-tools.sh"
2525
CLIPATH="$SCRIPT_ROOT/Tools/dotnetcli"
2626
SDKPATH="$CLIPATH/sdk/$SDK_VERSION"
2727

28+
# If running in Docker, make sure we have the UTF-8 locale or builds will error out.
29+
if [ -e /.dockerenv ]; then
30+
if [ "$EUID" -ne "0" ]; then
31+
echo "error: in docker but not root, so can't fix locale"
32+
exit 1
33+
fi
34+
if [ -e /etc/os-release ]; then
35+
source /etc/os-release
36+
# work around a bad /etc/apt/sources.list in the image
37+
if [[ "$ID" == "debian" ]]; then
38+
printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
39+
fi
40+
if [[ "$ID" == "debian" || "$ID" == "ubuntu" ]]; then
41+
apt-get update
42+
apt-get install -y locales
43+
localedef -c -i en_US -f UTF-8 en_US.UTF-8
44+
fi
45+
fi
46+
fi
47+
2848
set -x
2949

30-
$CLIPATH/dotnet $SDKPATH/MSBuild.dll $SCRIPT_ROOT/build.proj /bl /flp:v=diag /clp:v=m "$@"
50+
# if we are not running a RootRepo or specific target already, build Arcade first separately
51+
if ! [[ "$@" =~ "RootRepo" || "$@" =~ "/t:" ]]; then
52+
$CLIPATH/dotnet $SDKPATH/MSBuild.dll /bl:arcadeBuild.binlog $SCRIPT_ROOT/build.proj /p:RootRepo=arcade "$@" /p:FailOnPrebuiltBaselineError=false
53+
pkill dotnet
54+
fi
55+
$CLIPATH/dotnet $SDKPATH/MSBuild.dll $SCRIPT_ROOT/build.proj /bl:build.binlog /flp:v=diag /clp:v=m "$@"
3156

dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<!-- Build stabilization properties as passed in by ProdCon. -->
3737
<PropertyGroup>
3838
<UseStableVersions Condition="'$(UseStableVersions)' == ''">false</UseStableVersions>
39-
<VersionStamp Condition="'$(VersionStamp)' == ''">preview</VersionStamp>
39+
<VersionStamp Condition="'$(VersionStamp)' == ''">preview4</VersionStamp>
4040
</PropertyGroup>
4141

4242
<ItemGroup>

init-tools.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ if not [%INIT_TOOLS_ERRORLEVEL%]==[0] (
8585
goto :error
8686
)
8787

88+
REM CoreCLR expects this and has no way to pass in the dotnetcli director
89+
mklink /j "%TOOLRUNTIME_DIR%\.dotnet" "%DOTNET_PATH%"
90+
8891
:: Create semaphore file
8992
if NOT exist "%BUILD_TOOLS_SEMAPHORE_DIR%" mkdir "%BUILD_TOOLS_SEMAPHORE_DIR%"
9093
echo Init-Tools.cmd completed for BuildTools Version: %BUILDTOOLS_VERSION% > "%BUILD_TOOLS_SEMAPHORE%"

init-tools.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ ls "$__scriptpath/Tools/scripts/docker/"*.sh | xargs chmod +x
236236

237237
"$__scriptpath/Tools/crossgen.sh" "$__scriptpath/Tools"
238238

239+
# CoreCLR expects this and has no way to pass in the dotnetcli directory
240+
ln -s $__DOTNET_PATH $__TOOLRUNTIME_DIR/.dotnet
239241

240242
mkdir -p "$(dirname "$__BUILD_TOOLS_SEMAPHORE")" && touch "$__BUILD_TOOLS_SEMAPHORE"
241243
mkdir -p "$(dirname "$__BUILD_TOOLS_ARCADE_SEMAPHORE")" && touch "$__BUILD_TOOLS_ARCADE_SEMAPHORE"

patches/arcade/0001-Exclude-all-SignCheck-from-source-build.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
From ad98a9a7da384dd450fec95b59071be8d8beba9b Mon Sep 17 00:00:00 2001
2+
From: Chris Rummel <[email protected]>
3+
Date: Thu, 25 Apr 2019 19:01:08 -0500
4+
Subject: [PATCH] Remove projects that fail to build in source-build.
5+
6+
---
7+
Arcade.sln | 14 --------------
8+
1 file changed, 14 deletions(-)
9+
10+
diff --git a/Arcade.sln b/Arcade.sln
11+
index 3d8b9ca5..8e5357db 100644
12+
--- a/Arcade.sln
13+
+++ b/Arcade.sln
14+
@@ -2,8 +2,6 @@
15+
# Visual Studio 15
16+
VisualStudioVersion = 15.0.28307.271
17+
MinimumVisualStudioVersion = 10.0.40219.1
18+
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Build.Tasks.Feed", "src\Microsoft.DotNet.Build.Tasks.Feed\Microsoft.DotNet.Build.Tasks.Feed.csproj", "{941D335B-AA65-4089-9502-F306B108D182}"
19+
-EndProject
20+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.DotNet.Helix", "Microsoft.DotNet.Helix", "{6BE49638-F842-4329-BE8A-30C0F30CCAA5}"
21+
EndProject
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Helix.Sdk", "src\Microsoft.DotNet.Helix\Sdk\Microsoft.DotNet.Helix.Sdk.csproj", "{86DC4DC7-DCEE-44AC-A7E3-B6D5A909422C}"
23+
@@ -108,18 +106,6 @@ Global
24+
Release|x86 = Release|x86
25+
EndGlobalSection
26+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27+
- {941D335B-AA65-4089-9502-F306B108D182}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
- {941D335B-AA65-4089-9502-F306B108D182}.Debug|Any CPU.Build.0 = Debug|Any CPU
29+
- {941D335B-AA65-4089-9502-F306B108D182}.Debug|x64.ActiveCfg = Debug|Any CPU
30+
- {941D335B-AA65-4089-9502-F306B108D182}.Debug|x64.Build.0 = Debug|Any CPU
31+
- {941D335B-AA65-4089-9502-F306B108D182}.Debug|x86.ActiveCfg = Debug|Any CPU
32+
- {941D335B-AA65-4089-9502-F306B108D182}.Debug|x86.Build.0 = Debug|Any CPU
33+
- {941D335B-AA65-4089-9502-F306B108D182}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
- {941D335B-AA65-4089-9502-F306B108D182}.Release|Any CPU.Build.0 = Release|Any CPU
35+
- {941D335B-AA65-4089-9502-F306B108D182}.Release|x64.ActiveCfg = Release|Any CPU
36+
- {941D335B-AA65-4089-9502-F306B108D182}.Release|x64.Build.0 = Release|Any CPU
37+
- {941D335B-AA65-4089-9502-F306B108D182}.Release|x86.ActiveCfg = Release|Any CPU
38+
- {941D335B-AA65-4089-9502-F306B108D182}.Release|x86.Build.0 = Release|Any CPU
39+
{86DC4DC7-DCEE-44AC-A7E3-B6D5A909422C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{86DC4DC7-DCEE-44AC-A7E3-B6D5A909422C}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{86DC4DC7-DCEE-44AC-A7E3-B6D5A909422C}.Debug|x64.ActiveCfg = Debug|Any CPU
42+
--
43+
2.18.0
44+
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From 25d451e540a1f26b4007a4265ced013f33599c80 Mon Sep 17 00:00:00 2001
1+
From 51f8aa8e8332e6c8cc8f40bed28008261fe991fa Mon Sep 17 00:00:00 2001
22
From: Chris Rummel <[email protected]>
33
Date: Sun, 10 Feb 2019 17:55:21 -0600
44
Subject: [PATCH] Fix InternalsVisibleTo generation.
55

66
---
7-
.../tools/GenerateInternalsVisibleTo.targets | 5 +++--
8-
1 file changed, 3 insertions(+), 2 deletions(-)
7+
.../tools/GenerateInternalsVisibleTo.targets | 3 ++-
8+
1 file changed, 2 insertions(+), 1 deletion(-)
99

1010
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateInternalsVisibleTo.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateInternalsVisibleTo.targets
11-
index eb730bcf..eb63f0fd 100644
11+
index cad55ca3..bf41fafc 100644
1212
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateInternalsVisibleTo.targets
1313
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateInternalsVisibleTo.targets
14-
@@ -20,7 +20,8 @@
14+
@@ -15,7 +15,8 @@
1515
<ItemGroup>
1616
<_InternalsVisibleToAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
1717
<_Parameter1 Condition="'%(InternalsVisibleTo.Key)' != ''">%(InternalsVisibleTo.Identity), PublicKey=%(InternalsVisibleTo.Key)</_Parameter1>
@@ -21,13 +21,6 @@ index eb730bcf..eb63f0fd 100644
2121
</_InternalsVisibleToAttribute>
2222
</ItemGroup>
2323
</Target>
24-
@@ -45,4 +46,4 @@
25-
</WriteCodeFragment>
26-
</Target>
27-
28-
-</Project>
29-
\ No newline at end of file
30-
+</Project>
3124
--
3225
2.18.0
3326

patches/arcade/0003-Add-support-for-repo-specific-Empty.targets.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)