diff --git a/eng/Versions.props b/eng/Versions.props
index 85d38fc12ee1..ad7de7b526e9 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -88,7 +88,7 @@
$(MicrosoftNETCoreAppHostwinx64PackageVersion)
$(MicrosoftNETCoreAppRuntimewinx64PackageVersion)
- $(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)
+ $(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)
$(MicrosoftWindowsDesktopAppRuntimewinx64PackageVersion)
@@ -116,7 +116,7 @@
$(NUnit3DotNetNewTemplatePackageVersion)
$(MicrosoftDotNetCommonItemTemplatesPackageVersion)
6.0.111
- $(MicrosoftAspNetCoreAppRuntimePackageVersion)
+ $(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)
$(MicrosoftWinFormsProjectTemplates50PackageVersion)
$(MicrosoftWPFProjectTemplates50PackageVersion)
diff --git a/src/SourceBuild/tarball/content/Directory.Build.props b/src/SourceBuild/tarball/content/Directory.Build.props
index 61cc6ff6746a..2e2d7e8bcec7 100644
--- a/src/SourceBuild/tarball/content/Directory.Build.props
+++ b/src/SourceBuild/tarball/content/Directory.Build.props
@@ -22,14 +22,6 @@
x64
false
-
-
- false
- false
- true
- false
diff --git a/src/SourceBuild/tarball/content/repos/aspnetcore.proj b/src/SourceBuild/tarball/content/repos/aspnetcore.proj
index 480f3c7132ee..52243024aaa7 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) /p:BuildNodeJs=false
$(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 e34337b8599c..6c08a1f67d8e 100644
--- a/src/SourceBuild/tarball/content/repos/installer.proj
+++ b/src/SourceBuild/tarball/content/repos/installer.proj
@@ -25,7 +25,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 eab5162908d2..12d9943da8ec 100644
--- a/src/SourceBuild/tarball/content/repos/known-good.proj
+++ b/src/SourceBuild/tarball/content/repos/known-good.proj
@@ -44,7 +44,6 @@
-
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 f90a7b7d63a7..000000000000
--- 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 b1e9e6adb336..000000000000
--- a/src/SourceBuild/tarball/content/repos/runtime.common.props
+++ /dev/null
@@ -1,43 +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 862b70dc832d..000000000000
--- 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 f3ed143f889a..073cd8bc13f8 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/source-build-reference-packages.proj b/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj
index 69ab564a2adc..9545b50e4bf7 100644
--- a/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj
+++ b/src/SourceBuild/tarball/content/repos/source-build-reference-packages.proj
@@ -2,7 +2,9 @@
- $(StandardSourceBuildCommand) $(StandardSourceBuildArgs)
+ $(StandardSourceBuildArgs)
+ $(BuildCommandArgs) /p:MicrosoftNetCoreIlasmPackageRuntimeId=$(NETCoreSdkRuntimeIdentifier)
+ $(StandardSourceBuildCommand) $(BuildCommandArgs)
$(ProjectDirectory)NuGet.config
$(ProjectDirectory)global.json
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
index 8949af13254c..a59ed388fa08 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/GenerateBundledVersions.targets b/src/redist/targets/GenerateBundledVersions.targets
index 580dd9423742..6681e00716d1 100644
--- a/src/redist/targets/GenerateBundledVersions.targets
+++ b/src/redist/targets/GenerateBundledVersions.targets
@@ -204,7 +204,7 @@
-
+
@@ -365,7 +365,7 @@ Copyright (c) .NET Foundation. All rights reserved.
TargetFramework="net6.0"
RuntimeFrameworkName="Microsoft.AspNetCore.App"
DefaultRuntimeFrameworkVersion="$(MicrosoftAspNetCoreAppDefaultRuntimeFrameworkVersion)"
- LatestRuntimeFrameworkVersion="$(MicrosoftAspNetCoreAppRuntimePackageVersion)"
+ LatestRuntimeFrameworkVersion="$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)"
TargetingPackName="Microsoft.AspNetCore.App.Ref"
TargetingPackVersion="$(MicrosoftAspNetCoreAppRefPackageVersion)"
RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
diff --git a/src/redist/targets/GenerateDebs.targets b/src/redist/targets/GenerateDebs.targets
index f0e7e5d14506..610b43182d1a 100644
--- a/src/redist/targets/GenerateDebs.targets
+++ b/src/redist/targets/GenerateDebs.targets
@@ -61,7 +61,7 @@
$(DownloadsFolder)$(DownloadedHostFxrInstallerFileName)
dotnet-host
$(DownloadsFolder)$(DownloadedSharedHostInstallerFileName)
- aspnetcore-runtime-$(MicrosoftAspNetCoreAppRuntimePackageVersion)
+ aspnetcore-runtime-$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)
$(AspNetCoreSharedFxDebianPackageFileName.ToLower())
aspnetcore-runtime-$(AspNetCoreMajorMinorVersion)
$(AspNetCoreSharedFxDebianPackageName.ToLower())
diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets
index 88a053b61d4d..7ec4f64d5b29 100644
--- a/src/redist/targets/GenerateLayout.targets
+++ b/src/redist/targets/GenerateLayout.targets
@@ -9,7 +9,7 @@
$(VSRedistCommonAspNetCoreSharedFrameworkx6460PackageVersion)
- $(MicrosoftAspNetCoreAppRuntimePackageVersion)
+ $(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)
$(VSRedistCommonNetCoreSharedFrameworkx6460PackageVersion)
$(MicrosoftNETCoreAppRuntimePackageVersion)
@@ -84,21 +84,24 @@
dotnet-runtime$(PgoTerm)-$(VSRedistCommonNetCoreSharedFrameworkx6460PackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension)
windowsdesktop-runtime-$(MicrosoftWindowsDesktopAppRuntimePackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension)
+ $(HostOSName)-$(BuildArchitecture)
+ $(SharedFrameworkRid)
+
$(SharedFrameworkRid)
linux-x64
$(AspNetCoreInstallerRid)
x64
aarch64
- aspnetcore-runtime-$(MicrosoftAspNetCoreAppRuntimePackageVersion)-$(AspNetCoreInstallerRid)$(InstallerExtension)
+ aspnetcore-runtime-$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)-$(AspNetCoreInstallerRid)$(InstallerExtension)
aspnetcore-runtime-$(VSRedistCommonAspNetCoreSharedFrameworkx6460PackageVersion)-$(AspNetCoreInstallerRid)$(InstallerExtension)
- aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersion)-$(AspNetCoreInstallerRid).wixlib
+ aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)-$(AspNetCoreInstallerRid).wixlib
aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefPackageVersion)-$(AspNetCoreInstallerRid)$(InstallerExtension)
aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefInternalPackageVersion)-$(AspNetCoreInstallerRid)$(InstallerExtension)
- aspnetcoremodule_$(Architecture)_en_v2_$(MicrosoftAspNetCoreAppRuntimePackageVersion)$(InstallerExtension)
+ aspnetcoremodule_$(Architecture)_en_v2_$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)$(InstallerExtension)
aspnetcore-targeting-pack-$(MicrosoftAspNetCoreAppRefPackageVersion)-$(AspNetCoreArchiveRid)$(ArchiveExtension)
- aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersion)-$(AspNetCoreArchiveRid)$(ArchiveExtension)
+ aspnetcore-runtime-internal-$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)-$(AspNetCoreArchiveRid)$(ArchiveExtension)
aspnetcore_base_runtime.version
@@ -450,7 +453,7 @@
+ MicrosoftAspNetCoreAppVersion="$(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)" />
diff --git a/src/redist/targets/GeneratePKG.targets b/src/redist/targets/GeneratePKG.targets
index 39a79152de87..322b9831cfb5 100644
--- a/src/redist/targets/GeneratePKG.targets
+++ b/src/redist/targets/GeneratePKG.targets
@@ -113,7 +113,7 @@
$(MicrosoftNETCoreAppRuntimePackageVersion)
- $(MicrosoftAspNetCoreAppRuntimePackageVersion)
+ $(MicrosoftAspNetCoreAppRuntimePackageVersionBuilt)
diff --git a/src/redist/targets/LinuxNativeInstallerDependencyVersions.targets b/src/redist/targets/LinuxNativeInstallerDependencyVersions.targets
index 82482b22af15..e3ac134276bc 100644
--- a/src/redist/targets/LinuxNativeInstallerDependencyVersions.targets
+++ b/src/redist/targets/LinuxNativeInstallerDependencyVersions.targets
@@ -11,7 +11,7 @@
-
+