Skip to content

Commit 9e7c7cb

Browse files
authored
Merge pull request #785 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2 parents 7d2031a + 7e0f22c commit 9e7c7cb

File tree

170 files changed

+1821
-14443
lines changed

Some content is hidden

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

170 files changed

+1821
-14443
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
[submodule "src/roslyn-tools"]
6464
path = src/roslyn-tools
6565
url = https://github.com/dotnet/roslyn-tools
66+
[submodule "src/linker"]
67+
path = src/linker
68+
url = https://github.com/mono/linker.git
6669
[submodule "src/core-sdk"]
6770
path = src/core-sdk
6871
url = https://github.com/dotnet/core-sdk

DotnetCLIVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.401-preview-009081
1+
2.1.402

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/20180515-07/final/index.json
1+
https://dotnetfeed.blob.core.windows.net/orchestrated-release-2-2/20181014-01/final/index.json

build-source-tarball.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33
IFS=$'\n\t'
44

55
usage() {
6-
echo "usage: $0 <path-to-tarball-root> [--skip-build]"
6+
echo "usage: $0 <path-to-tarball-root> [--skip-build] [--enable-leak-detection]"
77
echo ""
88
}
99

@@ -16,6 +16,8 @@ TARBALL_ROOT=$1
1616
shift
1717

1818
SKIP_BUILD=0
19+
INCLUDE_LEAK_DETECTION=0
20+
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
1921

2022
while :; do
2123
if [ $# -le 0 ]; then
@@ -31,6 +33,9 @@ while :; do
3133
--skip-build)
3234
SKIP_BUILD=1
3335
;;
36+
--enable-leak-detection)
37+
INCLUDE_LEAK_DETECTION=1
38+
;;
3439
*)
3540
echo "Unrecognized argument '$1'"
3641
usage
@@ -110,6 +115,7 @@ rm -rf $TARBALL_ROOT/Tools/configuration/configuration.props
110115
cp $SCRIPT_ROOT/support/tarball/build.sh $TARBALL_ROOT/build.sh
111116

112117
mkdir -p $TARBALL_ROOT/prebuilt/nuget-packages
118+
mkdir -p $TARBALL_ROOT/prebuilt/source-built
113119
find $SCRIPT_ROOT/packages -name '*.nupkg' -exec cp {} $TARBALL_ROOT/prebuilt/nuget-packages/ \;
114120
find $SCRIPT_ROOT/bin/obj/x64/Release/nuget-packages -name '*.nupkg' -exec cp {} $TARBALL_ROOT/prebuilt/nuget-packages/ \;
115121

@@ -129,6 +135,13 @@ do
129135
fi
130136
done
131137

138+
echo 'Copying source-built packages to tarball to replace packages needed before they are built...'
139+
140+
for built_package in $(find $SCRIPT_ROOT/bin/obj/x64/Release/blob-feed/packages/ -name '*.nupkg')
141+
do
142+
cp $built_package $TARBALL_ROOT/prebuilt/source-built/
143+
done
144+
132145
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)'
133146

134147
ROSLYN_TOOLS_PACKAGE='RoslynTools.RepoToolset'
@@ -150,6 +163,11 @@ SOURCE_BUILT_SDK_TOOLS_DIR="$TARBALL_ROOT/Tools/source-built/$ROSLYN_TOOLS_PACKA
150163
cp "$REPO_TOOLSET_PACKAGE_DIR/tools/"*.props "$SOURCE_BUILT_SDK_TOOLS_DIR"
151164
cp "$REPO_TOOLSET_PACKAGE_DIR/tools/"*.targets "$SOURCE_BUILT_SDK_TOOLS_DIR"
152165

166+
if [ $INCLUDE_LEAK_DETECTION -eq 1 ]; then
167+
echo 'Building leak detection MSBuild tasks...'
168+
./Tools/dotnetcli/dotnet restore $SCRIPT_ROOT/tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection.csproj --source $FULL_TARBALL_ROOT/prebuilt/source-built --source $FULL_TARBALL_ROOT/prebuilt/nuget-packages
169+
./Tools/dotnetcli/dotnet publish -o $FULL_TARBALL_ROOT/tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection $SCRIPT_ROOT/tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection.csproj
170+
fi
153171

154172
echo 'Recording commits for the source-build repo and all submodules, to aid in reproducibility...'
155173

build.proj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<Project ToolsVersion="15.0" InitialTargets="PrepareOutput" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="dir.props" />
44

5+
<UsingTask AssemblyFile="$(LeakDetectionTasksBinDir)Microsoft.DotNet.SourceBuild.Tasks.LeakDetection.dll" TaskName="CheckForPoison" />
6+
57
<Target Name="Build" DependsOnTargets="PrepareOutput;InitBuild">
68
<Message Text="Build Environment: $(Platform) $(Configuration) $(TargetOS) $(TargetRid)" />
79

@@ -21,6 +23,7 @@
2123
<MakeDir Directories="$(SourceBuiltPackagesPath)" />
2224
<MakeDir Directories="$(SourceBuiltAssetsDir)" />
2325
<MakeDir Directories="$(LocalBlobStorageRoot)" />
26+
<MakeDir Directories="$(MSBuildDebugPathTargetDir)" />
2427
</Target>
2528

2629
<Target Name="InitBuild">
@@ -48,6 +51,18 @@
4851
<MSBuild Projects="repos\$(RootRepo).proj" Targets="ReportPrebuiltUsage" />
4952
</Target>
5053

54+
<Target Name="ReportPoisonUsage"
55+
AfterTargets="Build"
56+
Condition="'$(EnablePoison)' == 'true' and '$(OfflineBuild)' == 'true'">
57+
<ItemGroup>
58+
<FinalCliTarball Include="$(SourceBuiltTarBallPath)**/*$(TarBallExtension)" />
59+
</ItemGroup>
60+
<CheckForPoison FilesToCheck="@(FinalCliTarball)"
61+
HashCatalogFilePath="$(PoisonReportDataFile)"
62+
MarkerFileName="$(PoisonMarkerFile)"
63+
PoisonReportOutputFilePath="$(PoisonUsageReportFile)" />
64+
</Target>
65+
5166
<Target Name="RunSmokeTest" DependsOnTargets="GetProdConBlobFeedUrl">
5267
<!--
5368
Pass prodConBlobFeedUrl via EnvironmentVariables because it has '//' in it, which is

dependencies.props

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
<CurrentRefXmlPath>$(MSBuildThisFileFullPath)</CurrentRefXmlPath>
1818
</PropertyGroup>
1919

20-
<!-- ILLink.Tasks package version -->
21-
<PropertyGroup>
22-
<ILLinkTasksPackage>ILLink.Tasks</ILLinkTasksPackage>
23-
<ILLinkTasksPackageVersion>0.1.5-preview-1461378</ILLinkTasksPackageVersion>
24-
</PropertyGroup>
25-
2620
<!--
2721
Packages built by ProdCon, but not source-build. These are included as prebuilts, or embedded in
2822
the product as version strings to be used by the SDK to fetch extra content.
@@ -33,6 +27,12 @@
3327
<MicrosoftNETSdkRazorPackageVersion>2.1.0</MicrosoftNETSdkRazorPackageVersion>
3428
</PropertyGroup>
3529

30+
<!-- Build stabilization properties as passed in by ProdCon. -->
31+
<PropertyGroup>
32+
<UseStableVersions Condition="'$(UseStableVersions)' == ''">false</UseStableVersions>
33+
<VersionStamp Condition="'$(VersionStamp)' == ''">preview1</VersionStamp>
34+
</PropertyGroup>
35+
3636
<ItemGroup>
3737
<!-- Get ILAsm tool version from CoreCLR. -->
3838
<RemoteDependencyBuildInfo Include="CoreClr">

dir.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<ToolsLocalDir>$(ProjectDir)tools-local/</ToolsLocalDir>
4848
<TaskDirectory>$(ToolsLocalDir)tasks/</TaskDirectory>
4949
<TasksBinDir>$(TaskDirectory)Microsoft.DotNet.SourceBuild.Tasks/bin/Debug/netstandard1.5/</TasksBinDir>
50+
<LeakDetectionTasksBinDir>$(TaskDirectory)Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/</LeakDetectionTasksBinDir>
5051
<BaseIntermediatePath>$(BaseOutputPath)obj/</BaseIntermediatePath>
5152
<OutputPath>$(BaseOutputPath)$(Platform)/$(Configuration)/</OutputPath>
5253
<IntermediatePath>$(BaseIntermediatePath)$(Platform)/$(Configuration)/</IntermediatePath>
@@ -57,19 +58,27 @@
5758
<SourceBuiltPackagesPath>$(SourceBuiltBlobFeedDir)packages/</SourceBuiltPackagesPath>
5859
<SourceBuiltAssetsDir>$(SourceBuiltBlobFeedDir)assets/</SourceBuiltAssetsDir>
5960
<PrebuiltPackagesPath>$(ProjectDir)prebuilt/nuget-packages/</PrebuiltPackagesPath>
61+
<PrebuiltSourceBuiltPackagesPath>$(ProjectDir)prebuilt/source-built/</PrebuiltSourceBuiltPackagesPath>
6062
<SourceBuiltTarBallPath>$(OutputPath)</SourceBuiltTarBallPath>
6163
<SourceBuiltToolsetDir>$(LocalBlobStorageRoot)Toolset/</SourceBuiltToolsetDir>
6264
<SourceBuiltRuntimeDir>$(LocalBlobStorageRoot)Runtime/</SourceBuiltRuntimeDir>
6365
<TargetInfoProps>$(IntermediatePath)TargetInfo.props</TargetInfoProps>
6466
<RestoreSourcePropsPath>$(IntermediatePath)RestoreSources.props</RestoreSourcePropsPath>
6567
<PackageVersionPropsPath>$(IntermediatePath)PackageVersions.props</PackageVersionPropsPath>
6668
<LoggingDir>$(BaseOutputPath)logs/</LoggingDir>
69+
<MSBuildDebugPathTargetDir>$(BaseOutputPath)msbuild-debug/</MSBuildDebugPathTargetDir>
6770
<!-- Dir where git info is generated during online builds. -->
6871
<GitInfoOutputDir>$(BaseOutputPath)git-info/</GitInfoOutputDir>
6972
<!-- Dir where git info is placed inside the tarball. -->
7073
<GitInfoOfflineDir>$(ProjectDir)git-info/</GitInfoOfflineDir>
7174
<PackageReportDir>$(BaseOutputPath)prebuilt-report/</PackageReportDir>
7275
<PackageReportDataFile>$(PackageReportDir)prebuilt-usage.xml</PackageReportDataFile>
76+
<PoisonUsageReportFile>$(PackageReportDir)poison-usage.xml</PoisonUsageReportFile>
77+
<PoisonReportDataFile>$(PackageReportDir)poison-catalog.xml</PoisonReportDataFile>
78+
<PoisonMarkerFile>.prebuilt.xml</PoisonMarkerFile>
79+
<SourceBuiltPoisonReportDataFile>$(PackageReportDir)poison-source-built-catalog.xml</SourceBuiltPoisonReportDataFile>
80+
<SourceBuiltPoisonMarkerFile>.source-built.xml</SourceBuiltPoisonMarkerFile>
81+
<ProjectAssetsJsonArchiveFile>$(PackageReportDir)all-project-assets-json-files.zip</ProjectAssetsJsonArchiveFile>
7382
<ProdConManifestFile>$(PackageReportDir)prodcon-build.xml</ProdConManifestFile>
7483
<PoisonedReportFile>$(PackageReportDir)poisoned.txt</PoisonedReportFile>
7584
<ConflictingPackageReportDir>$(BaseOutputPath)conflict-report/</ConflictingPackageReportDir>

init-tools.msbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
Condition="'$(BuildToolsPackageVersion)' != ''"
1212
Version="$(BuildToolsPackageVersion)" />
1313
<PackageReference Include="Microsoft.DotNet.BuildTools.Coreclr" Version="1.0.4-prerelease" />
14-
<PackageReference Include="$(ILLinkTasksPackage)" Version="$(ILLinkTasksPackageVersion)" />
1514
</ItemGroup>
1615
</Project>

0 commit comments

Comments
 (0)