diff --git a/eng/Versions.props b/eng/Versions.props
index e88bf449f..cde857c87 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -193,7 +193,7 @@
or minor release, prebuilts may be needed. When the release is mature, prebuilts are not
necessary, and this property is removed from the file.
-->
- 7.0.100
+ 7.0.102-4
diff --git a/src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml b/src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml
index 9ae170d1c..9e67adb4d 100644
--- a/src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml
+++ b/src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml
@@ -101,6 +101,35 @@ jobs:
Contents: '*.tar.gz'
TargetFolder: $(tarballDir)/packages/archive/
+ - script: |
+ set -euo pipefail
+
+ sourceBuiltSDKUrl="https://dotnetcli.azureedge.net/source-built-artifacts/sdks/"
+ packageVersionsPath="$(Build.SourcesDirectory)/eng/Versions.props"
+ notFoundMessage="No source-built SDK found to download..."
+
+ echo "Looking for source-built SDK to download..."
+ archiveVersionLine=`grep -m 1 "" "$packageVersionsPath" || :`
+ versionPattern="(.*)"
+
+ if [[ $archiveVersionLine =~ $versionPattern ]]; then
+ filename="dotnet-sdk-${BASH_REMATCH[1]}-centos.8-x64.tar.gz"
+ archiveUrl="${sourceBuiltSDKUrl}${filename}"
+ downloadDir=$(mktemp -d)
+ (cd $downloadDir && curl --retry 5 -O $archiveUrl)
+
+ mkdir $(tarballDir)/.dotnet
+ tar -xzf $downloadDir/$filename -C $(tarballDir)/.dotnet
+ rm -rf $downloadDir
+ else
+ echo "$notFoundMessage"
+ exit 1
+ fi
+
+ echo "##vso[task.setvariable variable=additionalBuildArgs]--with-sdk /tarball/.dotnet"
+ displayName: Setup Previously Source-Built SDK
+ condition: eq(variables._WithPreviousSDK, 'true')
+
- script: |
set -x
diff --git a/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml b/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml
index 06bfd2b15..efa1ff1af 100644
--- a/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml
+++ b/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml
@@ -36,36 +36,48 @@ jobs:
installerBuildResourceId: ${{ parameters.installerBuildResourceId }}
matrix:
CentOSStream8-Online:
- _BootstrapPrep: false
+ _BootstrapPrep: true
_Container: ${{ parameters.centOSStream8Container }}
_EnablePoison: false
_ExcludeOmniSharpTests: true
_RunOnline: true
+ _WithPreviousSDK: false
CentOSStream8-Offline:
- _BootstrapPrep: false
+ _BootstrapPrep: true
_Container: ${{ parameters.centOSStream8Container }}
_EnablePoison: false
_ExcludeOmniSharpTests: true
_RunOnline: false
+ _WithPreviousSDK: false
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- CentOSStream9-Offline:
+ CentOSStream8-WithPreviousSDK:
_BootstrapPrep: false
+ _Container: ${{ parameters.centOSStream8Container }}
+ _EnablePoison: false
+ _ExcludeOmniSharpTests: true
+ _RunOnline: false
+ _WithPreviousSDK: true
+ CentOSStream9-Offline:
+ _BootstrapPrep: true
_Container: ${{ parameters.centOSStream9Container }}
_EnablePoison: false
_ExcludeOmniSharpTests: false
_RunOnline: false
+ _WithPreviousSDK: false
Fedora36-Offline:
- _BootstrapPrep: false
+ _BootstrapPrep: true
_Container: ${{ parameters.fedora36Container }}
_EnablePoison: true
_ExcludeOmniSharpTests: false
_RunOnline: false
+ _WithPreviousSDK: false
Ubuntu2004-Offline:
- _BootstrapPrep: false
+ _BootstrapPrep: true
_Container: ${{ parameters.ubuntu2004Container }}
_EnablePoison: false
_ExcludeOmniSharpTests: false
_RunOnline: false
+ _WithPreviousSDK: false
name: Build_Tarball_x64
pool:
${{ if eq(variables['System.TeamProject'], 'public') }}:
@@ -89,6 +101,7 @@ jobs:
_EnablePoison: false
_ExcludeOmniSharpTests: false
_RunOnline: false
+ _WithPreviousSDK: false
name: Build_Tarball_arm64
pool: ${{ parameters.poolInternalArm64 }}
@@ -109,6 +122,7 @@ jobs:
_EnablePoison: false
_ExcludeOmniSharpTests: false
_RunOnline: false
+ _WithPreviousSDK: false
name: Build_Tarball_x64_Using_Previous
pool:
${{ if eq(variables['System.TeamProject'], 'public') }}:
diff --git a/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets b/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
index e7a9698c6..97f4b4ce3 100644
--- a/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
+++ b/src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
@@ -285,10 +285,6 @@
-
-
diff --git a/src/SourceBuild/tarball/content/Directory.Build.props b/src/SourceBuild/tarball/content/Directory.Build.props
index a0feed9d1..6ca72bb7a 100644
--- a/src/SourceBuild/tarball/content/Directory.Build.props
+++ b/src/SourceBuild/tarball/content/Directory.Build.props
@@ -23,19 +23,6 @@
x64
false
-
- false
-
- true
- true
-
-
- false
- false
- true
- false
@@ -236,12 +223,8 @@
-
-
-
-
@@ -253,6 +236,10 @@
+
+
+
+
diff --git a/src/SourceBuild/tarball/content/eng/bootstrap/OverrideBootstrapVersions.props b/src/SourceBuild/tarball/content/eng/bootstrap/OverrideBootstrapVersions.props
index d0a05029f..ced02e960 100644
--- a/src/SourceBuild/tarball/content/eng/bootstrap/OverrideBootstrapVersions.props
+++ b/src/SourceBuild/tarball/content/eng/bootstrap/OverrideBootstrapVersions.props
@@ -7,5 +7,9 @@
$(NonshippingRuntimeVersionFor700)
$(NonshippingRuntimeVersionFor700)
$(NonshippingRuntimeVersionFor700)
+
+ 7.0.0
+ 7.0.0
+ 7.0.0
diff --git a/src/SourceBuild/tarball/content/eng/bootstrap/buildBootstrapPreviouslySB.csproj b/src/SourceBuild/tarball/content/eng/bootstrap/buildBootstrapPreviouslySB.csproj
index a22d70373..4f2bbd079 100644
--- a/src/SourceBuild/tarball/content/eng/bootstrap/buildBootstrapPreviouslySB.csproj
+++ b/src/SourceBuild/tarball/content/eng/bootstrap/buildBootstrapPreviouslySB.csproj
@@ -13,36 +13,40 @@
-
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -73,6 +77,30 @@
Targets="CopyDownloadedPackage"
Properties="SourcePath=$(RestorePackagesPath);DestinationPath=$(UnpackedTarPath);PackageName=%(PackageDownload.Identity);PackageVersion=%(PackageDownload.Version)" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/SourceBuild/tarball/content/eng/pipelines/security-partners-dotnet.yml b/src/SourceBuild/tarball/content/eng/pipelines/security-partners-dotnet.yml
index 69bef21e9..6200e7fc0 100644
--- a/src/SourceBuild/tarball/content/eng/pipelines/security-partners-dotnet.yml
+++ b/src/SourceBuild/tarball/content/eng/pipelines/security-partners-dotnet.yml
@@ -12,6 +12,7 @@ jobs:
_EnablePoison: false
_ExcludeOmniSharpTests: false
_RunOnline: false
+ _WithPreviousSDK: false
name: Build_Tarball_x64
pool:
name: NetCore1ESPool-Svc-Internal
diff --git a/src/SourceBuild/tarball/content/global.json b/src/SourceBuild/tarball/content/global.json
index 1bf480e4e..01432c896 100644
--- a/src/SourceBuild/tarball/content/global.json
+++ b/src/SourceBuild/tarball/content/global.json
@@ -1,6 +1,6 @@
{
"tools": {
- "dotnet": "7.0.100"
+ "dotnet": "7.0.102"
},
"msbuild-sdks": {
"Microsoft.Build.CentralPackageVersions": "2.0.1",
diff --git a/src/SourceBuild/tarball/content/repos/aspnetcore.proj b/src/SourceBuild/tarball/content/repos/aspnetcore.proj
index ee6b65aae..ff9d9fda1 100644
--- a/src/SourceBuild/tarball/content/repos/aspnetcore.proj
+++ b/src/SourceBuild/tarball/content/repos/aspnetcore.proj
@@ -9,6 +9,7 @@
$(BuildCommandArgs) --no-build-repo-tasks
$(BuildCommandArgs) --no-build-nodejs
$(BuildCommandArgs) /p:PublishCompressedFilesPathPrefix=$(SourceBuiltAspNetCoreRuntime)
+ $(BuildCommandArgs) /p:PortableBuild=false /p:TargetRuntimeIdentifier=$(TargetRid)
$(BuildCommandArgs) /p:MicrosoftNetFrameworkReferenceAssembliesVersion=1.0.0
diff --git a/src/SourceBuild/tarball/content/repos/installer.proj b/src/SourceBuild/tarball/content/repos/installer.proj
index 0168d3ad6..6cbda514b 100644
--- a/src/SourceBuild/tarball/content/repos/installer.proj
+++ b/src/SourceBuild/tarball/content/repos/installer.proj
@@ -30,7 +30,7 @@
$(BuildCommandArgs) /p:Rid=$(TargetRid)
$(BuildCommandArgs) /p:DOTNET_INSTALL_DIR=$(DotNetCliToolDir)
- $(BuildCommandArgs) /p:AspNetCoreInstallerRid=linux-$(Platform)
+ $(BuildCommandArgs) /p:AspNetCoreInstallerRid=$(TargetRid)
$(BuildCommandArgs) /p:CoreSetupRid=freebsd-x64 /p:PortableBuild=true
$(BuildCommandArgs) /p:CoreSetupRid=osx-x64
diff --git a/src/SourceBuild/tarball/content/repos/known-good.proj b/src/SourceBuild/tarball/content/repos/known-good.proj
index 7adea7e84..989d6e20d 100644
--- a/src/SourceBuild/tarball/content/repos/known-good.proj
+++ b/src/SourceBuild/tarball/content/repos/known-good.proj
@@ -43,7 +43,6 @@
-
diff --git a/src/SourceBuild/tarball/content/repos/package-source-build.proj b/src/SourceBuild/tarball/content/repos/package-source-build.proj
index 0ada671fb..fbc5a0cc1 100644
--- a/src/SourceBuild/tarball/content/repos/package-source-build.proj
+++ b/src/SourceBuild/tarball/content/repos/package-source-build.proj
@@ -50,7 +50,7 @@
$(OutputPath)$(SourceBuiltArtifactsTarballName).$(installerOutputPackageVersion).tar.gz
-
diff --git a/src/SourceBuild/tarball/content/repos/runtime-portable.proj b/src/SourceBuild/tarball/content/repos/runtime-portable.proj
deleted file mode 100644
index 09b4625e9..000000000
--- a/src/SourceBuild/tarball/content/repos/runtime-portable.proj
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
- runtime
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $(ProjectDirectory)artifacts/portableLog
- $(ProjectDirectory)artifacts/portableObj
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/SourceBuild/tarball/content/repos/runtime.common.props b/src/SourceBuild/tarball/content/repos/runtime.common.props
deleted file mode 100644
index cb02932f9..000000000
--- a/src/SourceBuild/tarball/content/repos/runtime.common.props
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
- runtime
-
-
-
-
-
-
- true
-
-
- $(StandardSourceBuildArgs.Replace('-bl', '-nobl'))
-
- $(StandardSourceBuildCommand) $(BuildCommandArgs)
- $(ArmEnvironmentVariables) $(StandardSourceBuildCommand) $(BuildCommandArgs)
-
- $(ProjectDirectory)/clean$(ShellExtension)
-
-
-
-
- $(ProjectDirectory)global.json
- $(ProjectDirectory)NuGet.config
- false
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/SourceBuild/tarball/content/repos/runtime.common.targets b/src/SourceBuild/tarball/content/repos/runtime.common.targets
deleted file mode 100644
index 862b70dc8..000000000
--- a/src/SourceBuild/tarball/content/repos/runtime.common.targets
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $(ProjectDirectory)pkg/Microsoft.NETCore.Platforms/runtime.json
-
-
-
-
-
-
-
-
- <_builtRuntimePackages Include="$(SourceBuiltAssetsDir)*.symbols.nupkg" />
- <_builtRuntimePackages>
- $([System.String]::Copy('%(FileName)').Replace('symbols', 'nupkg'))
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/SourceBuild/tarball/content/repos/runtime.proj b/src/SourceBuild/tarball/content/repos/runtime.proj
index 59ea1d6fc..85d0efa77 100644
--- a/src/SourceBuild/tarball/content/repos/runtime.proj
+++ b/src/SourceBuild/tarball/content/repos/runtime.proj
@@ -1,18 +1,57 @@
-
+
+
+ true
+
+ $(ProjectDirectory)/clean$(ShellExtension)
+
$(TargetRid)
osx-x64
freebsd-x64
win-x64
+ <_platformIndex>$(NETCoreSdkRuntimeIdentifier.LastIndexOf('-'))
+ $(NETCoreSdkRuntimeIdentifier.Substring(0, $(_platformIndex)))
+
+ <_platformIndex>$(NETCoreSdkPortableRuntimeIdentifier.LastIndexOf('-'))
+ $(NETCoreSdkPortableRuntimeIdentifier.Substring(0, $(_platformIndex)))
+
$(StandardSourceBuildArgs)
$(BuildCommandArgs) /p:TargetRid=$(OverrideTargetRid)
+ $(BuildCommandArgs) /p:RuntimeOS=$(RuntimeOS)
+ $(BuildCommandArgs) /p:BaseOS=$(BaseOS)
$(BuildCommandArgs) /p:SourceBuildNonPortable=true
$(StandardSourceBuildCommand) $(BuildCommandArgs)
+
+
+ $(ProjectDirectory)global.json
+ $(ProjectDirectory)NuGet.config
+ false
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -20,8 +59,49 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ $(ProjectDirectory)pkg/Microsoft.NETCore.Platforms/runtime.json
+
+
+
+
+
+
+
+
+ <_builtRuntimePackages Include="$(SourceBuiltAssetsDir)*.symbols.nupkg" />
+ <_builtRuntimePackages>
+ $([System.String]::Copy('%(FileName)').Replace('symbols', 'nupkg'))
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/SourceBuild/tarball/content/repos/sdk.proj b/src/SourceBuild/tarball/content/repos/sdk.proj
index 5d0fe449d..442c548e6 100644
--- a/src/SourceBuild/tarball/content/repos/sdk.proj
+++ b/src/SourceBuild/tarball/content/repos/sdk.proj
@@ -7,6 +7,9 @@
$(BuildCommandArgs) /p:PackageProjectUrl=https://github.com/dotnet/sdk
$(BuildCommandArgs) /p:PublishCompressedFilesPathPrefix=$(SourceBuiltToolsetDir)
+
+ $(BuildCommandArgs) /p:NativeAotSupported=false
+
true
$(BuildCommandArgs) -v $(LogVerbosity)
diff --git a/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj b/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj
index a4fb27340..c1321e716 100644
--- a/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj
+++ b/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj
@@ -4,7 +4,11 @@
$(BaseIntermediatePath)source-build-reference-package-cache
- $(StandardSourceBuildCommand) $(StandardSourceBuildArgs) /p:LocalNuGetPackageCacheDirectory=$(LocalNuGetPackageCacheDirectory)
+ $(StandardSourceBuildArgs)
+ $(BuildCommandArgs) /p:MicrosoftNetCoreIlasmPackageRuntimeId=$(NETCoreSdkRuntimeIdentifier)
+ $(BuildCommandArgs) /p:LocalNuGetPackageCacheDirectory=$(LocalNuGetPackageCacheDirectory)
+
+ $(StandardSourceBuildCommand) $(BuildCommandArgs)
$(ProjectDirectory)NuGet.config
$(ProjectDirectory)global.json
diff --git a/src/SourceBuild/tarball/content/tools-local/init-build.proj b/src/SourceBuild/tarball/content/tools-local/init-build.proj
index b2c3beed1..0405ad8f1 100644
--- a/src/SourceBuild/tarball/content/tools-local/init-build.proj
+++ b/src/SourceBuild/tarball/content/tools-local/init-build.proj
@@ -9,6 +9,7 @@
+
@@ -22,6 +23,7 @@
+
+
+
+
+
+
-Date: Tue, 15 Nov 2022 17:34:00 +0000
-Subject: [PATCH] Address Microsoft.Build.Locator prebuilt
-
-Backport: https://github.com/dotnet/format/issues/1759
----
- Directory.Packages.props | 2 +-
- eng/Versions.props | 1 +
- 2 files changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/Directory.Packages.props b/Directory.Packages.props
-index c4bf3cf..f7e85b2 100644
---- a/Directory.Packages.props
-+++ b/Directory.Packages.props
-@@ -10,7 +10,7 @@
-
-
-
--
-+
-
-
-
-diff --git a/eng/Versions.props b/eng/Versions.props
-index fcd583b..2933963 100644
---- a/eng/Versions.props
-+++ b/eng/Versions.props
-@@ -14,6 +14,7 @@
-
-
- 17.3.0-preview-22302-02
-+ 1.5.5
- 3.3.3
- 7.0.0-rc.1.22426.10
-
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
index 399529689..753b86c67 100644
--- a/src/redist/targets/Crossgen.targets
+++ b/src/redist/targets/Crossgen.targets
@@ -6,7 +6,7 @@
microsoft.netcore.app.runtime.$(SharedFrameworkRid)
- microsoft.netcore.app.crossgen2.$(HostOSName)-$(BuildArchitecture)
+ microsoft.netcore.app.crossgen2.$(Crossgen2Rid)
$(NuGetPackageRoot)/$(RuntimeNETCrossgenPackageName)/$(MicrosoftNETCoreAppRuntimePackageVersion)/tools/crossgen2$(ExeExtension)
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index ae911ab1c..308fdfb2b 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -84,6 +84,9 @@
dotnet-runtime$(PgoTerm)-$(VSRedistCommonNetCoreSharedFrameworkx6470PackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension)
windowsdesktop-runtime-$(MicrosoftWindowsDesktopAppRuntimePackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension)
+ $(HostOSName)-$(BuildArchitecture)
+ $(SharedFrameworkRid)
+
$(SharedFrameworkRid)
linux-x64
$(AspNetCoreInstallerRid)