Skip to content

Commit 90d4e15

Browse files
authored
[release/2.1] Update to ProdCon 2.1.3 (#644)
* Update from product/cli/release/2.1.3 * Update CoreClr, ProdCon to servicing-26708-02, 20180711-01-1855006, respectively * Manually update aspnet packages to ProdCon 2.1.3 * Fix cli and websdk patches cli patch needed to be refreshed. websdk patch has been incorporated into repo. * Add sdk patch ensuring PackAsTool not set * Add CLI binlogging * Update NuGet to 4.8.0.5278 sources Fix NuGet.Client patch * Add CLI patch to fix NuGet SDK resolver PVP prop * Add reference to nuget-client patch fix * Add binlog as patch, not replacement The replacement causes "\" to be replaced with "/", breaking the build script by surrounding the Rid with "/"s. * Update RepoToolset for ImportNetSdkFromRepoToolset This RepoToolset commit matches the RepoToolset package that the SDK repo uses. The SDK repo is failing on error MSB4011 '...Sdk.targets" cannot be imported again. It was already imported ...', which seems related. * Update SDK submodule and remove patch * Update roslyn-tools to an update commit Try to find a "fresh" commit capable of building itself. * Add roslyn dependency to msbuild * Update roslyn-tools to minimal change sdk needs * Workaround get prebuilt roslyn-tools props/targets * Link workaround tracking issue
1 parent 4ca4d03 commit 90d4e15

24 files changed

+173
-137
lines changed

ProdConFeed.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://dotnetfeed.blob.core.windows.net/orchestrated-release-2-1/20180628-02/final/index.json
1+
https://dotnetfeed.blob.core.windows.net/orchestrated-release-2-1/20180711-01/final/index.json

build-source-tarball.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,27 @@ if [ -z "${SOURCE_BUILD_SKIP_PREBUILT_REPORT:-}" ]; then
108108
)
109109
fi
110110

111+
echo 'WORKAROUND: Overwriting the source-built roslyn-tools MSBuild files with prebuilt so that roslyn-tools can successfully build in the tarball... (https://github.com/dotnet/source-build/issues/654)'
112+
113+
ROSLYN_TOOLS_PACKAGE='RoslynTools.RepoToolset'
114+
JSON_LINE=$(grep "$ROSLYN_TOOLS_PACKAGE" "$SCRIPT_ROOT/src/roslyn-tools/global.json")
115+
# Remove spaces.
116+
JSON_LINE=${JSON_LINE// }
117+
118+
# Isolate version from something like: "RoslynTools.RepoToolset":"1.0.0-beta2-62805-03"
119+
PREFIX="\"$ROSLYN_TOOLS_PACKAGE\":\""
120+
ROSLYN_TOOLS_REPO_TOOLSET_VERSION=${JSON_LINE:${#PREFIX}:$((${#JSON_LINE} - ${#PREFIX} - 1))}
121+
REPO_TOOLSET_PACKAGE_DIR="$SCRIPT_ROOT/packages/${ROSLYN_TOOLS_PACKAGE,,}/$ROSLYN_TOOLS_REPO_TOOLSET_VERSION"
122+
123+
if [ ! -d "$REPO_TOOLSET_PACKAGE_DIR" ]; then
124+
echo "Failed to find repo toolset at: $REPO_TOOLSET_PACKAGE_DIR"
125+
exit 1
126+
fi
127+
128+
SOURCE_BUILT_SDK_TOOLS_DIR="$TARBALL_ROOT/Tools/source-built/$ROSLYN_TOOLS_PACKAGE/tools"
129+
cp "$REPO_TOOLSET_PACKAGE_DIR/tools/"*.props "$SOURCE_BUILT_SDK_TOOLS_DIR"
130+
cp "$REPO_TOOLSET_PACKAGE_DIR/tools/"*.targets "$SOURCE_BUILT_SDK_TOOLS_DIR"
131+
111132
echo 'Recording commits for the source-build repo and all submodules, to aid in reproducibility...'
112133

113134
cat >$TARBALL_ROOT/source-build-info.txt << EOF

dependencies.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
for which dotnet/versions commit was last used to update the dependency.
66
-->
77
<PropertyGroup>
8-
<ProdConCurrentRef>d1e2bedf58a4a66aadda4f5751ecdaf3ad4f62fe</ProdConCurrentRef>
9-
<CoreClrCurrentRef>79731c509a9d31b921f531ee63c48daa8e0c30d5</CoreClrCurrentRef>
8+
<ProdConCurrentRef>908dee01ee91f36bf97c69a33dcc2e54e4d837ac</ProdConCurrentRef>
9+
<CoreClrCurrentRef>908dee01ee91f36bf97c69a33dcc2e54e4d837ac</CoreClrCurrentRef>
1010
<BuildToolsCurrentRef>91c9a3b3374ff71e72c06d5773bd26598539aa1d</BuildToolsCurrentRef>
1111
</PropertyGroup>
1212

@@ -40,7 +40,7 @@
4040

4141
<DependencyInfo Include="ProdCon" Condition="'$(UpdateFromManifestFile)' == ''">
4242
<DependencyType>Orchestrated build</DependencyType>
43-
<BasePath>build-info/dotnet/product/cli/release/2.1</BasePath>
43+
<BasePath>build-info/dotnet/product/cli/release/2.1.3</BasePath>
4444
<CurrentRef>$(ProdConCurrentRef)</CurrentRef>
4545
<VersionsRepoOwner>dotnet</VersionsRepoOwner>
4646
<VersionsRepo>versions</VersionsRepo>

patches/cli/0001-Persist-ASP.NET-runtime-patch-targeting-default.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9609106bcab766e1e44e464c38cc4148ea639a23 Mon Sep 17 00:00:00 2001
1+
From d6f6922c24e205a53bc5f2420695a4a177648808 Mon Sep 17 00:00:00 2001
22
From: Davis Goodin <dagood@microsoft.com>
33
Date: Wed, 13 Jun 2018 09:46:43 -0500
44
Subject: [PATCH] Persist ASP.NET runtime patch targeting default
@@ -11,13 +11,13 @@ https://github.com/dotnet/cli/issues/9469 is required to remove this patch.
1111
1 file changed, 3 insertions(+)
1212

1313
diff --git a/build/MSBuildExtensions.targets b/build/MSBuildExtensions.targets
14-
index 042cd2e93..7df11b659 100644
14+
index f5365724a..f192226b8 100644
1515
--- a/build/MSBuildExtensions.targets
1616
+++ b/build/MSBuildExtensions.targets
17-
@@ -185,6 +185,9 @@ Copyright (c) .NET Foundation. All rights reserved.
18-
<LatestPatchVersionForNetCore1_0 Condition="'$(LatestPatchVersionForNetCore1_0)' == ''">1.0.11</LatestPatchVersionForNetCore1_0>
19-
<LatestPatchVersionForNetCore1_1 Condition="'$(LatestPatchVersionForNetCore1_1)' == ''">1.1.8</LatestPatchVersionForNetCore1_1>
20-
<LatestPatchVersionForNetCore2_0 Condition="'$(LatestPatchVersionForNetCore2_0)' == ''">2.0.7</LatestPatchVersionForNetCore2_0>
17+
@@ -196,6 +196,9 @@ Copyright (c) .NET Foundation. All rights reserved.
18+
<LatestPatchVersionForNetCore1_0 Condition="'%24(LatestPatchVersionForNetCore1_0)' == ''">1.0.12</LatestPatchVersionForNetCore1_0>
19+
<LatestPatchVersionForNetCore1_1 Condition="'%24(LatestPatchVersionForNetCore1_1)' == ''">1.1.9</LatestPatchVersionForNetCore1_1>
20+
<LatestPatchVersionForNetCore2_0 Condition="'%24(LatestPatchVersionForNetCore2_0)' == ''">2.0.9</LatestPatchVersionForNetCore2_0>
2121
+
2222
+ <!-- If true, always target the latest ASP.NET Core runtime by default -->
2323
+ <TargetLatestAspNetCoreRuntimePatch Condition="'$(TargetLatestAspNetCoreRuntimePatch)' == ''">$(DefaultTargetLatestAspNetCoreRuntimePatch)</TargetLatestAspNetCoreRuntimePatch>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
From 7c3f8f470aa6fd832ca0dfd6d7a94b2d9adeb6fb Mon Sep 17 00:00:00 2001
2+
From: Davis Goodin <dagood@microsoft.com>
3+
Date: Mon, 16 Jul 2018 12:33:29 -0500
4+
Subject: [PATCH] Fix NuGet SDK resolver PackageVersion property
5+
6+
https://github.com/dotnet/cli/issues/9669 is required to remove this patch.
7+
---
8+
build/DependencyVersions.props | 2 +-
9+
src/redist/redist.csproj | 2 +-
10+
2 files changed, 2 insertions(+), 2 deletions(-)
11+
12+
diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props
13+
index 099c68052..618d48771 100644
14+
--- a/build/DependencyVersions.props
15+
+++ b/build/DependencyVersions.props
16+
@@ -52,7 +52,7 @@
17+
<NuGetPackagingPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetPackagingPackageVersion>
18+
<NuGetProjectModelPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetProjectModelPackageVersion>
19+
<NuGetVersioningPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetVersioningPackageVersion>
20+
- <NuGetSdkResolverPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetSdkResolverPackageVersion>
21+
+ <MicrosoftBuildNuGetSdkResolverPackageVersion>$(NuGetBuildTasksPackageVersion)</MicrosoftBuildNuGetSdkResolverPackageVersion>
22+
<MicrosoftNETTestSdkPackageVersion>15.8.0-preview-20180605-02</MicrosoftNETTestSdkPackageVersion>
23+
<MicrosoftTestPlatformCLIPackageVersion>$(MicrosoftNETTestSdkPackageVersion)</MicrosoftTestPlatformCLIPackageVersion>
24+
<MicrosoftTestPlatformBuildPackageVersion>$(MicrosoftNETTestSdkPackageVersion)</MicrosoftTestPlatformBuildPackageVersion>
25+
diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj
26+
index 05a2b52c0..8b069b3ad 100644
27+
--- a/src/redist/redist.csproj
28+
+++ b/src/redist/redist.csproj
29+
@@ -17,7 +17,7 @@
30+
<ItemGroup>
31+
<PackageReference Include="Microsoft.NETCore.App" Version="$(MicrosoftNETCoreAppPackageVersion)" />
32+
<PackageReference Include="NuGet.Build.Tasks" Version="$(NuGetBuildTasksPackageVersion)" />
33+
- <PackageReference Include="Microsoft.Build.NuGetSdkResolver" Version="$(NuGetSdkResolverPackageVersion)" />
34+
+ <PackageReference Include="Microsoft.Build.NuGetSdkResolver" Version="$(MicrosoftBuildNuGetSdkResolverPackageVersion)" />
35+
<PackageReference Include="Microsoft.TestPlatform.CLI" Version="$(MicrosoftTestPlatformCLIPackageVersion)" />
36+
<PackageReference Include="Microsoft.TestPlatform.Build" Version="$(MicrosoftTestPlatformBuildPackageVersion)" />
37+
<PackageReference Condition=" '$(DotNetBuildFromSource)' != 'true' " Include="NuGet.Localization" Version="$(NuGetProjectModelPackageVersion)" />
38+
--
39+
2.17.1.windows.2
40+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 0287e8c92360de0474295864496c13c5c1eae190 Mon Sep 17 00:00:00 2001
2+
From: Davis Goodin <dagood@microsoft.com>
3+
Date: Mon, 16 Jul 2018 14:13:54 -0500
4+
Subject: [PATCH] Add binlog build args
5+
6+
https://github.com/dotnet/cli/issues/9671 is required to remove this patch.
7+
---
8+
run-build.sh | 4 ++--
9+
1 file changed, 2 insertions(+), 2 deletions(-)
10+
11+
diff --git a/run-build.sh b/run-build.sh
12+
index 1f2ed25a9..426604aee 100755
13+
--- a/run-build.sh
14+
+++ b/run-build.sh
15+
@@ -189,8 +189,8 @@ fi
16+
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
17+
18+
if [ $BUILD -eq 1 ]; then
19+
- dotnet msbuild build.proj /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS /p:GeneratePropsFile=true /t:WriteDynamicPropsToStaticPropsFiles ${argsnotargets[@]}
20+
- dotnet msbuild build.proj /m /v:normal /fl /flp:v=diag /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS $args
21+
+ dotnet msbuild build.proj /bl:msbuild.generatepropsfile.binlog /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS /p:GeneratePropsFile=true /t:WriteDynamicPropsToStaticPropsFiles ${argsnotargets[@]}
22+
+ dotnet msbuild build.proj /bl:msbuild.mainbuild.binlog /m /v:normal /fl /flp:v=diag /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS $args
23+
else
24+
echo "Not building due to --nobuild"
25+
echo "Command that would be run is: 'dotnet msbuild build.proj /m /p:Architecture=$ARCHITECTURE $CUSTOM_BUILD_ARGS $args'"
26+
--
27+
2.17.1.windows.2
28+

0 commit comments

Comments
 (0)