diff --git a/.vsts-ci.yml b/.vsts-ci.yml
index 2c5d77b56..528479925 100644
--- a/.vsts-ci.yml
+++ b/.vsts-ci.yml
@@ -36,7 +36,7 @@ variables:
value: ''
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- name: _InternalRuntimeDownloadArgs
- value: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
+ value: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
/p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
/p:dotnetbuilds-internal-container-read-token-base64=$(dotnetbuilds-internal-container-read-token-base64)
- name: DncEngPublicBuildPool
@@ -272,7 +272,7 @@ extends:
_TestArg: ''
Build_Linux_musl_Debug_x64:
_BuildConfig: Debug
- _DockerParameter: '--docker alpine.3.13'
+ _DockerParameter: '--docker alpine.3.15'
_LinuxPortable: ''
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
_BuildArchitecture: 'x64'
@@ -317,7 +317,7 @@ extends:
_TestArg: ''
Build_Linux_musl_Release_x64:
_BuildConfig: Release
- _DockerParameter: '--docker alpine.3.13'
+ _DockerParameter: '--docker alpine.3.15'
_LinuxPortable: ''
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
_BuildArchitecture: 'x64'
@@ -415,11 +415,6 @@ extends:
- template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-create-tarball.yml@self
- - ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
- - template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml@self
- parameters:
- dependsOn: Source_Build_Create_Tarball
-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates-official/job/publish-build-assets.yml@self
parameters:
@@ -429,6 +424,8 @@ extends:
- Darwin
- Source_Build_Managed
- Source_Build_Create_Tarball
+ - PGO_Linux
+ - PGO_Windows_NT
publishUsingPipelines: true
pool:
name: $(DncEngInternalBuildPool)
diff --git a/.vsts-pr.yml b/.vsts-pr.yml
index 2222ff644..daac90107 100644
--- a/.vsts-pr.yml
+++ b/.vsts-pr.yml
@@ -34,7 +34,7 @@ variables:
value: ''
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- name: _InternalRuntimeDownloadArgs
- value: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
+ value: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
/p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
/p:dotnetbuilds-internal-container-read-token-base64=$(dotnetbuilds-internal-container-read-token-base64)
@@ -228,7 +228,7 @@ stages:
_TestArg: ''
Build_Linux_musl_Debug_x64:
_BuildConfig: Debug
- _DockerParameter: '--docker alpine.3.13'
+ _DockerParameter: '--docker alpine.3.15'
_LinuxPortable: ''
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
_BuildArchitecture: 'x64'
@@ -273,7 +273,7 @@ stages:
_TestArg: ''
Build_Linux_musl_Release_x64:
_BuildConfig: Release
- _DockerParameter: '--docker alpine.3.13'
+ _DockerParameter: '--docker alpine.3.15'
_LinuxPortable: ''
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
_BuildArchitecture: 'x64'
@@ -367,11 +367,6 @@ stages:
- template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-create-tarball-pr.yml
- - ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
- - template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build-pr.yml
- parameters:
- dependsOn: Source_Build_Create_Tarball
-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/job/publish-build-assets.yml
parameters:
@@ -381,6 +376,8 @@ stages:
- Darwin
- Source_Build_Managed
- Source_Build_Create_Tarball
+ - PGO_Linux
+ - PGO_Windows_NT
publishUsingPipelines: true
pool:
${{ if eq(variables['System.TeamProject'], 'internal') }}:
diff --git a/NuGet.config b/NuGet.config
index bc938de7b..0b1ee68f4 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -13,13 +13,13 @@
-
+
-
+
@@ -37,25 +37,23 @@
-
-
-
-
+
+
+
-
+
-
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index d94cd270b..a9a35bd01 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -77,40 +77,40 @@
https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore
fedc545ce86467b7d3413d906f1ab02fb3db12ff
-
+
https://github.com/dotnet/test-templates
- c40ef7e056b48e011c43a21354d6790ba6b8b4fc
+ 9388790ba9ed8fef11584b2c74fe6789782a1592
-
+
https://github.com/dotnet/test-templates
- c40ef7e056b48e011c43a21354d6790ba6b8b4fc
+ 9388790ba9ed8fef11584b2c74fe6789782a1592
-
+
https://github.com/dotnet/test-templates
- c40ef7e056b48e011c43a21354d6790ba6b8b4fc
+ 9388790ba9ed8fef11584b2c74fe6789782a1592
-
+
https://dev.azure.com/dnceng/internal/_git/dotnet-templating
- c86b7556cbdc3e9a5a5226547490713e2e948401
+ 89f5155bcd844b1a02d2be6b17caa0fb2dcf17bc
-
+
https://dev.azure.com/dnceng/internal/_git/dotnet-templating
- c86b7556cbdc3e9a5a5226547490713e2e948401
+ 89f5155bcd844b1a02d2be6b17caa0fb2dcf17bc
-
+
https://dev.azure.com/dnceng/internal/_git/dotnet-templating
- c86b7556cbdc3e9a5a5226547490713e2e948401
+ 89f5155bcd844b1a02d2be6b17caa0fb2dcf17bc
-
+
https://dev.azure.com/dnceng/internal/_git/dotnet-sdk
- 53a7fb7b59ad63d09ce5182e2baaac1bd978f5d9
+ d1ba1897fb2799cf7a51bab3492c933a4fdad702
-
+
https://dev.azure.com/dnceng/internal/_git/dotnet-sdk
- 53a7fb7b59ad63d09ce5182e2baaac1bd978f5d9
+ d1ba1897fb2799cf7a51bab3492c933a4fdad702
@@ -121,44 +121,44 @@
https://dev.azure.com/dnceng/internal/_git/dotnet-wpf
798cc6d4922db482f84fb72a8244f0da898bc5d6
-
+
https://github.com/dotnet/fsharp
- 6d626ff0752a77d339f609b4d361787dc9ca93a5
+ 5d69143fbe992d8fa33d5b83d5fdd5f4ed7bb4fc
-
+
https://github.com/dotnet/fsharp
- 6d626ff0752a77d339f609b4d361787dc9ca93a5
+ 5d69143fbe992d8fa33d5b83d5fdd5f4ed7bb4fc
-
+
https://github.com/microsoft/vstest
- cc7fb0593127e24f55ce016fb3ac85b5b2857fec
+ 6e76d580fcc69954441344175bd1b0ab2e432026
-
+
https://github.com/dotnet/linker
- d0662ed8db919642177ddfd06a1c33895a69015f
+ e66cbcaa36aa719936a46160198c9012c6e174e4
linker
-
+
https://github.com/dotnet/roslyn
- 487283bcd8d66693091f2800dcf1c8ae37cccdee
+ 41a5af9d2c459a06c0795bf21a1c046200f375bf
-
+
https://github.com/dotnet/msbuild
- d679d209277a156cdc0963c993585ffa5744dc5f
+ a400405ba8c43976eda92a70d4adf72f9d292a22
-
+
https://dev.azure.com/devdiv/DevDiv/_git/NuGet-NuGet.Client-Trusted
- 451e9bc27184dc49d04e975122c9e7189d525872
+ 5ec7c4dd0086f968a8bc5a20d5cc77b1454469f3
-
+
https://github.com/Microsoft/ApplicationInsights-dotnet
- 93f745cfef8541f09862aae9bc8c04554bca38c7
+ 53b80940842204f78708a538628288ff5d741a1d
@@ -166,13 +166,13 @@
698fdad58fa64a55f16cd9562c90224cc498ed02
-
+
https://github.com/dotnet/emsdk
8601068126449af799f8e07ca358dbbd4b3fcab4
-
+
https://github.com/dotnet/source-build
- 7649ca7106e7e91ac06f169626bf01a77c2258eb
+ 10d0f7e94aa45889155c312f51cfc01bf326b853
diff --git a/eng/Versions.props b/eng/Versions.props
index e866b5269..5812b332c 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -7,8 +7,8 @@
6
0
- 1
- 33
+ 4
+ 25
$(VersionMajor).$(VersionMinor).$(VersionSDKMinor)$(VersionFeature)
servicing
$(VersionMajor).$(VersionMinor)
@@ -31,11 +31,11 @@
- 6.0.132
+ 6.0.424
- 1.0.2-beta4.22064.3
+ 1.0.2-beta4.22207.1
@@ -55,8 +55,8 @@
- 6.0.132-servicing.24315.1
- 6.0.132-servicing.24315.1
+ 6.0.424-servicing.24315.2
+ 6.0.424-servicing.24315.2
$(MicrosoftNETSdkPackageVersion)
$(MicrosoftNETSdkPackageVersion)
$(MicrosoftNETSdkPackageVersion)
@@ -92,12 +92,12 @@
- 6.0.6-rc.4
+ 6.3.4-rc.2
$(NuGetBuildTasksPackageVersion)
- 17.0.3
+ 17.3.4
$(MicrosoftNETCoreAppRuntimePackageVersion)
@@ -115,14 +115,14 @@
$(MicrosoftDotNetWpfProjectTemplatesPackageVersion)
$(NUnit3DotNetNewTemplatePackageVersion)
$(MicrosoftDotNetCommonItemTemplatesPackageVersion)
- 6.0.132
+ 6.0.424
$(MicrosoftAspNetCoreAppRuntimePackageVersion)
2.2.0-beta.19072.10
2.0.0
- 17.0.3-release-20230412-05
+ 17.3.3-release-20230405-02
@@ -148,15 +148,15 @@
- 6.0.101-preview.9.1805
- 31.0.101-preview.9.16
- 15.0.101-preview.9.31
- 15.0.101-preview.9.31
- 12.0.101-preview.9.31
- 15.0.101-preview.9.31
- $(MicrosoftNETCoreAppRefPackageVersion)
- 6.0.32
- $(MicrosoftNETWorkloadEmscriptenManifest60100Version)
+ 6.0.312
+ 32.0.301
+ 15.4.303
+ 15.4.303
+ 12.3.303
+ 15.4.303
+ 6.0.5
+ 6.0.32
+ $(MicrosoftNETWorkloadEmscriptenManifest60400Version)
diff --git a/eng/docker/alpine.3.13/Dockerfile b/eng/docker/alpine.3.15/Dockerfile
similarity index 93%
rename from eng/docker/alpine.3.13/Dockerfile
rename to eng/docker/alpine.3.15/Dockerfile
index 272f9596a..2d7e65698 100644
--- a/eng/docker/alpine.3.13/Dockerfile
+++ b/eng/docker/alpine.3.15/Dockerfile
@@ -4,7 +4,7 @@
#
# Dockerfile that creates a container suitable to build dotnet-cli
-FROM mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-20210714125444-ae5be29
+FROM mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.15-20220610131707-f0ea7ba
RUN apk update && apk upgrade && apk add --no-cache curl ncurses
diff --git a/eng/source-build-tarball-build-official.yml b/eng/source-build-tarball-build-official.yml
index 705bd8d5f..bef9853c4 100644
--- a/eng/source-build-tarball-build-official.yml
+++ b/eng/source-build-tarball-build-official.yml
@@ -11,6 +11,11 @@ resources:
- main
- release/*
- internal/release/*
+ exclude:
+ - release/6.0.3xx
+ - internal/release/6.0.3xx
+ - release/6.0.4xx
+ - internal/release/6.0.4xx
stages:
- build
repositories:
diff --git a/src/SdkResolver/SdkResolver.csproj b/src/SdkResolver/SdkResolver.csproj
index e923b917e..5dc640f4e 100644
--- a/src/SdkResolver/SdkResolver.csproj
+++ b/src/SdkResolver/SdkResolver.csproj
@@ -14,6 +14,7 @@
+
<_SdkResolverSrc Include="$(Pkgruntime_win-x86_Microsoft_NETCore_DotNetHostResolver)\runtimes\win-x86\native\hostfxr.dll" Arch="x86\" />
<_SdkResolverSrc Include="$(Pkgruntime_win-x64_Microsoft_NETCore_DotNetHostResolver)\runtimes\win-x64\native\hostfxr.dll" Arch="x64\" />
+ <_SdkResolverSrc Include="$(Pkgruntime_win-arm64_Microsoft_NETCore_DotNetHostResolver)\runtimes\win-arm64\native\hostfxr.dll" Arch="arm64\" />
<_SdkResolverSrc Include="$(PkgMicrosoft_DotNet_MSBuildSdkResolver)\lib\net472\**\*.dll" Arch="" />
<_SdkResolverDst Include="@(_SdkResolverSrc->'$(OutputPath)%(Arch)%(RecursiveDir)%(Filename)%(Extension)')" />
diff --git a/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build-pr.yml b/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build-pr.yml
index c38b7ce43..dde2f3a8e 100644
--- a/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build-pr.yml
+++ b/src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build-pr.yml
@@ -48,14 +48,14 @@ jobs:
_ExcludeOmniSharpTests: true
_OverrideDistroDisablingSha1: false
_RunOnline: true
- CentOS7-Offline:
- _BootstrapPrep: false
- _Container: ${{ parameters.centOS7Container }}
- _EnablePoison: false
- _ExcludeOmniSharpTests: true
- _OverrideDistroDisablingSha1: false
- _RunOnline: false
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
+ CentOS7-Offline:
+ _BootstrapPrep: false
+ _Container: ${{ parameters.centOS7Container }}
+ _EnablePoison: false
+ _ExcludeOmniSharpTests: true
+ _OverrideDistroDisablingSha1: false
+ _RunOnline: false
CentOSStream9-Offline:
_BootstrapPrep: false
_Container: ${{ parameters.centOSStream9Container }}
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 c13a1778c..b52bdf80c 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
@@ -54,14 +54,14 @@ jobs:
_ExcludeOmniSharpTests: true
_OverrideDistroDisablingSha1: false
_RunOnline: true
- CentOS7-Offline:
- _BootstrapPrep: false
- _Container: ${{ parameters.centOS7Container }}
- _EnablePoison: false
- _ExcludeOmniSharpTests: true
- _OverrideDistroDisablingSha1: false
- _RunOnline: false
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
+ CentOS7-Offline:
+ _BootstrapPrep: false
+ _Container: ${{ parameters.centOS7Container }}
+ _EnablePoison: false
+ _ExcludeOmniSharpTests: true
+ _OverrideDistroDisablingSha1: false
+ _RunOnline: false
CentOSStream9-Offline:
_BootstrapPrep: false
_Container: ${{ parameters.centOSStream9Container }}
diff --git a/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj b/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj
index 85c4f7ae2..7faf06dfb 100644
--- a/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj
+++ b/src/SourceBuild/Arcade/tools/TextOnlyPackages.csproj
@@ -11,14 +11,14 @@
should be added to source-build-reference-packages.
-->
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -187,26 +201,26 @@
KeepFeedPrefixes="@(KeepFeedPrefixes)" />
@@ -219,9 +233,14 @@
'$(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS)' != '' and
'$(SetUpInternalTransportFeed)' == 'true'"
NuGetConfigFile="%(NuGetConfigFiles.Identity)"
- SourceName="dotnet5-internal-transport"
+ SourceName="$(DotNet5InternalTransportNuGetSourceName)"
SourcePath="https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal-transport/nuget/v3/index.json" />
+
+
+
diff --git a/src/SourceBuild/tarball/content/repos/razor-compiler.proj b/src/SourceBuild/tarball/content/repos/razor-compiler.proj
new file mode 100644
index 000000000..f47d22c98
--- /dev/null
+++ b/src/SourceBuild/tarball/content/repos/razor-compiler.proj
@@ -0,0 +1,21 @@
+
+
+
+
+ $(StandardSourceBuildCommand) $(StandardSourceBuildArgs)
+
+ $(ProjectDirectory)global.json
+ $(ProjectDirectory)NuGet.config
+ false
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/SourceBuild/tarball/content/repos/sdk.proj b/src/SourceBuild/tarball/content/repos/sdk.proj
index 9a26cd695..613ed2e26 100644
--- a/src/SourceBuild/tarball/content/repos/sdk.proj
+++ b/src/SourceBuild/tarball/content/repos/sdk.proj
@@ -39,6 +39,7 @@
+
diff --git a/src/SourceBuild/tarball/content/tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UpdateNuGetConfigPackageSourcesMappings.cs b/src/SourceBuild/tarball/content/tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UpdateNuGetConfigPackageSourcesMappings.cs
new file mode 100644
index 000000000..9172566b3
--- /dev/null
+++ b/src/SourceBuild/tarball/content/tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UpdateNuGetConfigPackageSourcesMappings.cs
@@ -0,0 +1,91 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Xml;
+using System.Xml.Linq;
+using Microsoft.Build.Framework;
+using Microsoft.Build.Utilities;
+
+namespace Microsoft.DotNet.Build.Tasks
+{
+ /*
+ * This task updates the package source mappings in the NuGet.Config.
+ * If package source mappings are used, source-build packages sources will be added with the cumulative package patterns
+ * for all of the existing package sources. When building offline, the existing package source mappings will be removed;
+ * otherwise they will be preserved after the source-build sources.
+ */
+ public class UpdateNuGetConfigPackageSourcesMappings : Task
+ {
+ [Required]
+ public string NuGetConfigFile { get; set; }
+
+ ///
+ /// Whether to work in offline mode (remove all internet sources) or online mode (remove only authenticated sources)
+ ///
+ public bool BuildWithOnlineSources { get; set; }
+
+ ///
+ /// A list of all source-build specific NuGet sources.
+ ///
+ public string[] SourceBuildSources { get; set; }
+
+ public override bool Execute()
+ {
+ string xml = File.ReadAllText(NuGetConfigFile);
+ string newLineChars = FileUtilities.DetectNewLineChars(xml);
+ XDocument document = XDocument.Parse(xml);
+ XElement pkgSrcMappingElement = document.Root.Descendants().FirstOrDefault(e => e.Name == "packageSourceMapping");
+
+ if (pkgSrcMappingElement == null)
+ {
+ return true;
+ }
+
+ // Union all package sources to get the distinct list. These will get added to the source-build sources.
+ IEnumerable packagePatterns = pkgSrcMappingElement.Descendants()
+ .Where(e => e.Name == "packageSource")
+ .SelectMany(e => e.Descendants().Where(e => e.Name == "package"))
+ .Select(e => e.Attribute("pattern").Value)
+ .Distinct();
+
+ if (!BuildWithOnlineSources)
+ {
+ // When building offline remove all packageSourceMappings.
+ pkgSrcMappingElement?.ReplaceNodes(new XElement("clear"));
+ }
+
+ XElement pkgSrcMappingClearElement = pkgSrcMappingElement.Descendants().FirstOrDefault(e => e.Name == "clear");
+
+ foreach (string packageSource in SourceBuildSources)
+ {
+ XElement pkgSrc = new XElement("packageSource", new XAttribute("key", packageSource));
+ foreach (string packagePattern in packagePatterns)
+ {
+ pkgSrc.Add(new XElement("package", new XAttribute("pattern", packagePattern)));
+ }
+
+ if (pkgSrcMappingClearElement != null)
+ {
+ pkgSrcMappingClearElement.AddAfterSelf(pkgSrc);
+ }
+ else
+ {
+ pkgSrcMappingElement.AddFirst(pkgSrc);
+ pkgSrcMappingElement.AddFirst(new XElement("clear"));
+ }
+ }
+
+ using (var writer = XmlWriter.Create(NuGetConfigFile, new XmlWriterSettings { NewLineChars = newLineChars, Indent = true }))
+ {
+ document.Save(writer);
+ }
+
+ return true;
+ }
+ }
+}
diff --git a/src/SourceBuild/tarball/patches/aspnetcore/0007-WebHost-delegate-nullability.patch b/src/SourceBuild/tarball/patches/aspnetcore/0007-WebHost-delegate-nullability.patch
new file mode 100644
index 000000000..cf15d1bfc
--- /dev/null
+++ b/src/SourceBuild/tarball/patches/aspnetcore/0007-WebHost-delegate-nullability.patch
@@ -0,0 +1,43 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: MichaelSimons
+Date: Mon, 6 Dec 2021 18:39:25 +0000
+Subject: [PATCH] WebHost delegate nullability
+
+Addresses the following errors:
+
+ src/Hosting/Hosting/src/Internal/WebHost.cs(83,56): error CS8621: Nullability of reference types in return type of 'lambda expression' doesn't match the target delegate 'Func' (possibly because of nullability attributes).
+ src/Hosting/Hosting/src/Internal/WebHost.cs(86,56): error CS8621: Nullability of reference types in return type of 'lambda expression' doesn't match the target delegate 'Func' (possibly because of nullability attributes).
+ src/Hosting/Hosting/src/Internal/WebHost.cs(88,56): error CS8621: Nullability of reference types in return type of 'lambda expression' doesn't match the target delegate 'Func' (possibly because of nullability attributes).
+
+Cherry-pick of WebHost only changes made under https://github.com/dotnet/aspnetcore/commit/13a460820e90c8f3e90eb4fdbbb3de671389bf0c#diff-6ef451f2ae3e04d73dde362bdf9de6b101aef95e3a4f5190e5c96967d683aef9
+---
+ src/Hosting/Hosting/src/Internal/WebHost.cs | 14 ++++++--------
+ 1 file changed, 6 insertions(+), 8 deletions(-)
+
+diff --git a/src/Hosting/Hosting/src/Internal/WebHost.cs b/src/Hosting/Hosting/src/Internal/WebHost.cs
+index ca52bd1f40..643d03e8af 100644
+--- a/src/Hosting/Hosting/src/Internal/WebHost.cs
++++ b/src/Hosting/Hosting/src/Internal/WebHost.cs
+@@ -79,16 +79,14 @@ namespace Microsoft.AspNetCore.Hosting
+ _hostingServiceProvider = hostingServiceProvider;
+ _applicationServiceCollection.AddSingleton();
+ // There's no way to to register multiple service types per definition. See https://github.com/aspnet/DependencyInjection/issues/360
+-#pragma warning disable CS8634 // The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
+- _applicationServiceCollection.AddSingleton(services
+- => services.GetService()! as IHostApplicationLifetime);
++ _applicationServiceCollection.AddSingleton(services
++ => services.GetService()!);
+ #pragma warning disable CS0618 // Type or member is obsolete
+- _applicationServiceCollection.AddSingleton(services
+- => services.GetService()! as AspNetCore.Hosting.IApplicationLifetime);
+- _applicationServiceCollection.AddSingleton(services
+- => services.GetService()! as Extensions.Hosting.IApplicationLifetime);
++ _applicationServiceCollection.AddSingleton(services
++ => services.GetService()!);
++ _applicationServiceCollection.AddSingleton(services
++ => services.GetService()!);
+ #pragma warning restore CS0618 // Type or member is obsolete
+-#pragma warning restore CS8634 // The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
+ _applicationServiceCollection.AddSingleton();
+ }
+
diff --git a/src/SourceBuild/tarball/patches/command-line-api/0001-Enable-work-tree-and-unsafe-paths-to-be-able-to-appl.patch b/src/SourceBuild/tarball/patches/command-line-api/0001-Enable-work-tree-and-unsafe-paths-to-be-able-to-appl.patch
deleted file mode 100644
index 0fa032d6c..000000000
--- a/src/SourceBuild/tarball/patches/command-line-api/0001-Enable-work-tree-and-unsafe-paths-to-be-able-to-appl.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Chris Rummel
-Date: Wed, 22 Jun 2022 05:50:57 -0500
-Subject: [PATCH] Enable work-tree and unsafe-paths to be able to apply in the
- checked-in tarball.
-
----
- eng/SourceBuild.props | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
-index 6cc8501..a862003 100644
---- a/eng/SourceBuild.props
-+++ b/eng/SourceBuild.props
-@@ -15,7 +15,7 @@
-
-
-
-
diff --git a/src/SourceBuild/tarball/patches/format/0001-Fix-MicrosoftExtensionsVersion.patch b/src/SourceBuild/tarball/patches/format/0001-Fix-MicrosoftExtensionsVersion.patch
deleted file mode 100644
index efe43e2ae..000000000
--- a/src/SourceBuild/tarball/patches/format/0001-Fix-MicrosoftExtensionsVersion.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Davis Goodin
-Date: Fri, 22 Oct 2021 13:26:33 -0500
-Subject: [PATCH] Fix MicrosoftExtensionsVersion
-
-Move it to eng/Versions.props to make it overridable, and rename it to match an
-actual package ID.
-
-Update paramater nullability in src/Logging/SimpleConsoleLogger.cs to be
-source-compatible with the 6.0 version of these packages.
-
-See https://github.com/dotnet/format/issues/1400
----
- Directory.Packages.props | 7 +++----
- eng/Versions.props | 1 +
- src/Logging/SimpleConsoleLogger.cs | 2 +-
- 3 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/Directory.Packages.props b/Directory.Packages.props
-index 6b628c2..9b579ea 100644
---- a/Directory.Packages.props
-+++ b/Directory.Packages.props
-@@ -2,7 +2,6 @@
-
-
-
-- 5.0.0
-
- 6.0.0-preview.4.221
-
-@@ -25,9 +24,9 @@
-
-
-
--
--
--
-+
-+
-+
-
-
-
-diff --git a/eng/Versions.props b/eng/Versions.props
-index b1990aa..f6ddbbd 100644
---- a/eng/Versions.props
-+++ b/eng/Versions.props
-@@ -15,6 +15,7 @@
-
- 16.11.0
- 3.3.2
-+ 5.0.0
-
- 4.0.0-6.21526.21
-
-diff --git a/src/Logging/SimpleConsoleLogger.cs b/src/Logging/SimpleConsoleLogger.cs
-index c361f84..fd8015c 100644
---- a/src/Logging/SimpleConsoleLogger.cs
-+++ b/src/Logging/SimpleConsoleLogger.cs
-@@ -37,7 +37,7 @@ namespace Microsoft.CodeAnalysis.Tools.Logging
- _minimalErrorLevel = minimalErrorLevel;
- }
-
-- public void Log(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func formatter)
-+ public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter)
- {
- if (!IsEnabled(logLevel))
- {
diff --git a/src/SourceBuild/tarball/patches/format/0002-Add-explicit-System.Text.Json-dependency.patch b/src/SourceBuild/tarball/patches/format/0002-Add-explicit-System.Text.Json-dependency.patch
deleted file mode 100644
index a9da3afe3..000000000
--- a/src/SourceBuild/tarball/patches/format/0002-Add-explicit-System.Text.Json-dependency.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Nikola Milosavljevic
-Date: Mon, 26 Jun 2023 23:46:46 +0000
-Subject: [PATCH] Add explicit System.Text.Json dependency
-
-Adding an excplicit System.Text.Json dependency to prevent transitive dependency to be picked up
-from PSB, via Microsoft.Build package.
-
-Backport: https://github.com/dotnet/format/pull/1887
----
- Directory.Packages.props | 1 +
- eng/Version.Details.xml | 4 ++++
- eng/Versions.props | 2 ++
- src/dotnet-format.csproj | 6 ++++++
- 4 files changed, 13 insertions(+)
-
-diff --git a/Directory.Packages.props b/Directory.Packages.props
-index 6b628c22..c9f86593 100644
---- a/Directory.Packages.props
-+++ b/Directory.Packages.props
-@@ -36,5 +36,6 @@
-
-
-
-+
-
-
-\ No newline at end of file
-diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
-index cdfa5f5e..86f02b44 100644
---- a/eng/Version.Details.xml
-+++ b/eng/Version.Details.xml
-@@ -13,6 +13,10 @@
- https://github.com/dotnet/command-line-api
- 82273cb56c83b589e8e5b63da0ac9745ffc6e105
-
-+
-+ https://github.com/dotnet/runtime
-+ 3241df7f2b0f3e2dada8d07229723c79fdbe4991
-+
-
-
-
-diff --git a/eng/Versions.props b/eng/Versions.props
-index 27582078..bccaf176 100644
---- a/eng/Versions.props
-+++ b/eng/Versions.props
-@@ -20,6 +20,8 @@
-
- 2.0.0-beta1.21473.1
- 0.3.0-alpha.21473.1
-+
-+ 6.0.8
-
-
-+
-
-
-
diff --git a/src/SourceBuild/tarball/patches/fsharp/0001-Disable-apphost-on-downlevel-frameworks-during-sourc.patch b/src/SourceBuild/tarball/patches/fsharp/0001-Disable-apphost-on-downlevel-frameworks-during-sourc.patch
deleted file mode 100644
index d9a483852..000000000
--- a/src/SourceBuild/tarball/patches/fsharp/0001-Disable-apphost-on-downlevel-frameworks-during-sourc.patch
+++ /dev/null
@@ -1,167 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Davis Goodin
-Date: Tue, 19 Oct 2021 16:11:51 -0500
-Subject: [PATCH] Disable apphost on downlevel frameworks during source-build
-
-During source-build, disable apphost build for 'fsi' and 'fsc', and
-'fsyacc', 'fslex', and 'AssemblyCheck' during the bootstrap build.
-
-Creating an apphost for a net5.0 project while building with a net6.0
-SDK downloads the apphost pack as a prebuilt. Stopping the projects from
-creating the apphost removes the prebuilt for source-build.
-
-To make disabling the apphost work in the bootstrapping build, add a
-check to eng/build.sh to skip the bootstrap build if we're currently
-running the "outer" source-build. That gives source-build the ability to
-run bootstrapping on its own terms. Now, when eng/SourceBuild.props runs
-bootstrapping, it can pass the DotNetBuildFromSource property through
-the environment so it takes effect.
-
-See: https://github.com/dotnet/fsharp/issues/12282
-
-PR: https://github.com/dotnet/fsharp/pull/12286
----
- eng/SourceBuild.props | 2 +-
- eng/build.sh | 51 ++++++++++---------
- .../AssemblyCheck/AssemblyCheck.fsproj | 1 +
- src/buildtools/fslex/fslex.fsproj | 1 +
- src/buildtools/fsyacc/fsyacc.fsproj | 1 +
- src/fsharp/fsc/fsc.fsproj | 1 +
- src/fsharp/fsi/fsi.fsproj | 1 +
- 7 files changed, 34 insertions(+), 24 deletions(-)
-
-diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
-index 22c929f28..903ee00d3 100644
---- a/eng/SourceBuild.props
-+++ b/eng/SourceBuild.props
-@@ -41,7 +41,7 @@
-
-+ EnvironmentVariables="@(InnerBuildEnv);DotNetBuildFromSource=true" />
-
-
-
-diff --git a/eng/build.sh b/eng/build.sh
-index 9a2aa0083..6af422237 100755
---- a/eng/build.sh
-+++ b/eng/build.sh
-@@ -240,29 +240,34 @@ function BuildSolution {
- node_reuse=false
-
- # build bootstrap tools
-- bootstrap_config=Proto
-- bootstrap_dir=$artifacts_dir/Bootstrap
-- if [[ "$force_bootstrap" == true ]]; then
-- rm -fr $bootstrap_dir
-- fi
-- if [ ! -f "$bootstrap_dir/fslex.dll" ]; then
-- BuildMessage="Error building tools"
-- MSBuild "$repo_root/src/buildtools/buildtools.proj" \
-- /restore \
-- /p:Configuration=$bootstrap_config
--
-- mkdir -p "$bootstrap_dir"
-- cp -pr $artifacts_dir/bin/fslex/$bootstrap_config/net5.0 $bootstrap_dir/fslex
-- cp -pr $artifacts_dir/bin/fsyacc/$bootstrap_config/net5.0 $bootstrap_dir/fsyacc
-- fi
-- if [ ! -f "$bootstrap_dir/fsc.exe" ]; then
-- BuildMessage="Error building bootstrap"
-- MSBuild "$repo_root/proto.proj" \
-- /restore \
-- /p:Configuration=$bootstrap_config \
--
--
-- cp -pr $artifacts_dir/bin/fsc/$bootstrap_config/net5.0 $bootstrap_dir/fsc
-+ # source_build=true means we are currently in the outer/wrapper source-build,
-+ # and building bootstrap needs to wait. The source-build targets will run this
-+ # script again without setting source_build=true when it is done setting up
-+ # the build environment. See 'eng/SourceBuild.props'.
-+ if [[ "$source_build" != true ]]; then
-+ bootstrap_config=Proto
-+ bootstrap_dir=$artifacts_dir/Bootstrap
-+ if [[ "$force_bootstrap" == true ]]; then
-+ rm -fr $bootstrap_dir
-+ fi
-+ if [ ! -f "$bootstrap_dir/fslex.dll" ]; then
-+ BuildMessage="Error building tools"
-+ MSBuild "$repo_root/src/buildtools/buildtools.proj" \
-+ /restore \
-+ /p:Configuration=$bootstrap_config
-+
-+ mkdir -p "$bootstrap_dir"
-+ cp -pr $artifacts_dir/bin/fslex/$bootstrap_config/net5.0 $bootstrap_dir/fslex
-+ cp -pr $artifacts_dir/bin/fsyacc/$bootstrap_config/net5.0 $bootstrap_dir/fsyacc
-+ fi
-+ if [ ! -f "$bootstrap_dir/fsc.exe" ]; then
-+ BuildMessage="Error building bootstrap"
-+ MSBuild "$repo_root/proto.proj" \
-+ /restore \
-+ /p:Configuration=$bootstrap_config
-+
-+ cp -pr $artifacts_dir/bin/fsc/$bootstrap_config/net5.0 $bootstrap_dir/fsc
-+ fi
- fi
-
- if [[ "$skip_build" != true ]]; then
-diff --git a/src/buildtools/AssemblyCheck/AssemblyCheck.fsproj b/src/buildtools/AssemblyCheck/AssemblyCheck.fsproj
-index 464b6ef78..5c78bbe6d 100644
---- a/src/buildtools/AssemblyCheck/AssemblyCheck.fsproj
-+++ b/src/buildtools/AssemblyCheck/AssemblyCheck.fsproj
-@@ -4,6 +4,7 @@
- Exe
- net5.0
- true
-+ false
-
-
-
-diff --git a/src/buildtools/fslex/fslex.fsproj b/src/buildtools/fslex/fslex.fsproj
-index 1959ce59c..3d63bf6bf 100644
---- a/src/buildtools/fslex/fslex.fsproj
-+++ b/src/buildtools/fslex/fslex.fsproj
-@@ -5,6 +5,7 @@
- net5.0
- INTERNALIZED_FSLEXYACC_RUNTIME;$(DefineConstants)
- true
-+ false
-
-
-
-diff --git a/src/buildtools/fsyacc/fsyacc.fsproj b/src/buildtools/fsyacc/fsyacc.fsproj
-index 5d1b7141f..63b63c5de 100644
---- a/src/buildtools/fsyacc/fsyacc.fsproj
-+++ b/src/buildtools/fsyacc/fsyacc.fsproj
-@@ -5,6 +5,7 @@
- net5.0
- INTERNALIZED_FSLEXYACC_RUNTIME;$(DefineConstants)
- true
-+ false
-
-
-
-diff --git a/src/fsharp/fsc/fsc.fsproj b/src/fsharp/fsc/fsc.fsproj
-index 7fa31fc21..04025c297 100644
---- a/src/fsharp/fsc/fsc.fsproj
-+++ b/src/fsharp/fsc/fsc.fsproj
-@@ -12,6 +12,7 @@
- $(OtherFlags) --maxerrors:20 --extraoptimizationloops:1
- true
- true
-+ false
-
-
-
-diff --git a/src/fsharp/fsi/fsi.fsproj b/src/fsharp/fsi/fsi.fsproj
-index 9fd9b1333..eace6c166 100644
---- a/src/fsharp/fsi/fsi.fsproj
-+++ b/src/fsharp/fsi/fsi.fsproj
-@@ -13,6 +13,7 @@
- fsi.res
- true
- true
-+ false
-
-
-
diff --git a/src/SourceBuild/tarball/patches/fsharp/0002-Enable-work-tree-and-unsafe-paths-to-be-able-to-appl.patch b/src/SourceBuild/tarball/patches/fsharp/0002-Enable-work-tree-and-unsafe-paths-to-be-able-to-appl.patch
deleted file mode 100644
index cff9bda21..000000000
--- a/src/SourceBuild/tarball/patches/fsharp/0002-Enable-work-tree-and-unsafe-paths-to-be-able-to-appl.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Chris Rummel
-Date: Wed, 22 Jun 2022 05:53:06 -0500
-Subject: [PATCH] Enable work-tree and unsafe-paths to be able to apply in the
- checked-in tarball.
-
----
- eng/SourceBuild.props | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props
-index 903ee00..4c85819 100644
---- a/eng/SourceBuild.props
-+++ b/eng/SourceBuild.props
-@@ -15,7 +15,7 @@
-
-
-
-
diff --git a/src/SourceBuild/tarball/patches/linker/0001-fix-tlens-Mono.Cecil-reference.patch b/src/SourceBuild/tarball/patches/linker/0001-fix-tlens-Mono.Cecil-reference.patch
deleted file mode 100644
index 319028d25..000000000
--- a/src/SourceBuild/tarball/patches/linker/0001-fix-tlens-Mono.Cecil-reference.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Logan Bussell <36081148+lbussell@users.noreply.github.com>
-Date: Wed, 13 Oct 2021 18:26:09 +0000
-Subject: [PATCH] fix tlens Mono.Cecil reference
-
-Pull request for applying the patch: https://github.com/dotnet/linker/pull/2317
----
- src/tlens/tlens.csproj | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/tlens/tlens.csproj b/src/tlens/tlens.csproj
-index 92b3754..e17f9fb 100644
---- a/src/tlens/tlens.csproj
-+++ b/src/tlens/tlens.csproj
-@@ -10,7 +10,8 @@
-
-
-
--
-+
-+
-
-
-
diff --git a/src/SourceBuild/tarball/patches/linker/0002-Exclude-Microsoft.DotNet.ApiCompat-from-source-build.patch b/src/SourceBuild/tarball/patches/linker/0002-Exclude-Microsoft.DotNet.ApiCompat-from-source-build.patch
deleted file mode 100644
index 48bf63e70..000000000
--- a/src/SourceBuild/tarball/patches/linker/0002-Exclude-Microsoft.DotNet.ApiCompat-from-source-build.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Michael Simons
-Date: Wed, 20 Oct 2021 14:44:36 +0000
-Subject: [PATCH] Exclude Microsoft.DotNet.ApiCompat from source-build
-
-Backport PR: https://github.com/dotnet/linker/pull/2326
----
- eng/Tools.props | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/eng/Tools.props b/eng/Tools.props
-index 494d208..7c32ad5 100644
---- a/eng/Tools.props
-+++ b/eng/Tools.props
-@@ -2,7 +2,7 @@
-
-
-
--
-+
-
-
-
-\ No newline at end of file
diff --git a/src/SourceBuild/tarball/patches/linker/0003-Upgrade-Microsoft.NETFramework.ReferenceAssemblies-f.patch b/src/SourceBuild/tarball/patches/linker/0003-Upgrade-Microsoft.NETFramework.ReferenceAssemblies-f.patch
deleted file mode 100644
index 8458c20e5..000000000
--- a/src/SourceBuild/tarball/patches/linker/0003-Upgrade-Microsoft.NETFramework.ReferenceAssemblies-f.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Michael Simons
-Date: Wed, 20 Oct 2021 14:38:14 +0000
-Subject: [PATCH 1/2] Upgrade Microsoft.NETFramework.ReferenceAssemblies from
- 1.0.0 to 1.0.2
-
-Backport PR: https://github.com/dotnet/linker/pull/2326
----
- src/ILLink.Tasks/ILLink.Tasks.csproj | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/ILLink.Tasks/ILLink.Tasks.csproj b/src/ILLink.Tasks/ILLink.Tasks.csproj
-index 0ecf5d1..7501ecb 100644
---- a/src/ILLink.Tasks/ILLink.Tasks.csproj
-+++ b/src/ILLink.Tasks/ILLink.Tasks.csproj
-@@ -53,6 +53,6 @@
-
-
-
--
-+
-
-
diff --git a/src/SourceBuild/tarball/patches/msbuild/0001-Remove-prebuilt-jnm2.ReferenceAssemblies.net35.patch b/src/SourceBuild/tarball/patches/msbuild/0001-Remove-prebuilt-jnm2.ReferenceAssemblies.net35.patch
deleted file mode 100644
index 93717db90..000000000
--- a/src/SourceBuild/tarball/patches/msbuild/0001-Remove-prebuilt-jnm2.ReferenceAssemblies.net35.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Davis Goodin
-Date: Mon, 11 Oct 2021 17:09:14 -0500
-Subject: [PATCH] Remove prebuilt jnm2.ReferenceAssemblies.net35
-
-This prebuilt package filled a gap in the official 1.0 version of the .NET
-Framework reference assembly packages. The gap has been fixed in later versions
-of the official packages. Removal fixes a prebuilt dependency by letting the
-repo use the official version of the packges, which are produced by SBRP.
-https://github.com/dotnet/msbuild/issues/6935
----
- src/StringTools/StringTools.csproj | 5 -----
- 1 file changed, 5 deletions(-)
-
-diff --git a/src/StringTools/StringTools.csproj b/src/StringTools/StringTools.csproj
-index fef9909..93a4634 100644
---- a/src/StringTools/StringTools.csproj
-+++ b/src/StringTools/StringTools.csproj
-@@ -20,17 +20,12 @@
-
-
- Microsoft.NET.StringTools.net35
--
-- true
-
-
-
-
-
-
--
--
--
-
-
-
diff --git a/src/SourceBuild/tarball/patches/msbuild/0002-Disable-BannedApiAnalyzers-during-source-build.patch b/src/SourceBuild/tarball/patches/msbuild/0002-Disable-BannedApiAnalyzers-during-source-build.patch
deleted file mode 100644
index b5b0a84f6..000000000
--- a/src/SourceBuild/tarball/patches/msbuild/0002-Disable-BannedApiAnalyzers-during-source-build.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Davis Goodin
-Date: Tue, 12 Oct 2021 18:14:59 -0500
-Subject: [PATCH] Disable BannedApiAnalyzers during source-build
-
-BannedApiAnalyzers has some intentional old dependencies and it's not feasible
-to build it during source-build. Remove this usage to remove a prebuilt.
-https://github.com/dotnet/msbuild/issues/6961
----
- eng/Packages.props | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/eng/Packages.props b/eng/Packages.props
-index 0f478634f..3cc09a008 100644
---- a/eng/Packages.props
-+++ b/eng/Packages.props
-@@ -45,11 +45,11 @@
-
-
-
-+
-
-
-
-
--
-
-
-
diff --git a/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch b/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch
deleted file mode 100644
index da26d2cb7..000000000
--- a/src/SourceBuild/tarball/patches/msbuild/0003-Restore-building-all-TFMs-for-source-build.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From b7f0c8d910b5fa110be7f34816c4934f61643d08 Mon Sep 17 00:00:00 2001
-From: Chris Rummel
-Date: Wed, 20 Oct 2021 15:19:29 -0500
-Subject: [PATCH] Restore building all TFMs for source-build
-
-Required for omnisharp, nuget-client, templating, sdk
-
-Background Issue: https://github.com/dotnet/source-build/issues/2542
-Patch removal issue: https://github.com/dotnet/source-build/issues/2556
----
- src/Build/Microsoft.Build.csproj | 3 +--
- src/Directory.Build.props | 3 +--
- 2 files changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/src/Build/Microsoft.Build.csproj b/src/Build/Microsoft.Build.csproj
-index f75408633..8dc86355a 100644
---- a/src/Build/Microsoft.Build.csproj
-+++ b/src/Build/Microsoft.Build.csproj
-@@ -4,8 +4,7 @@
-
-
-
-- net6.0
-- $(FullFrameworkTFM);net6.0
-+ $(FullFrameworkTFM);net6.0
- $(RuntimeOutputTargetFrameworks)
- Microsoft.Build
- Microsoft.Build
-diff --git a/src/Directory.Build.props b/src/Directory.Build.props
-index b0e233194..7e0c7d8c8 100644
---- a/src/Directory.Build.props
-+++ b/src/Directory.Build.props
-@@ -27,13 +27,12 @@
-
-
- $(FullFrameworkTFM);netstandard2.0
-- netstandard2.0
- $(FullFrameworkTFM)
- AnyCPU
-
-
- net6.0
-- $(FullFrameworkTFM);$(RuntimeOutputTargetFrameworks)
-+ $(FullFrameworkTFM);$(RuntimeOutputTargetFrameworks)
- $(FullFrameworkTFM)
-
-
---
-2.31.1
-
diff --git a/src/SourceBuild/tarball/patches/msbuild/0004-Remove-dependency-on-MS.VS.Setup.Configuration.Inter.patch b/src/SourceBuild/tarball/patches/msbuild/0004-Remove-dependency-on-MS.VS.Setup.Configuration.Inter.patch
deleted file mode 100644
index 6ca89df7d..000000000
--- a/src/SourceBuild/tarball/patches/msbuild/0004-Remove-dependency-on-MS.VS.Setup.Configuration.Inter.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From a75f4b17c3595079f69ea00041182368adea14c9 Mon Sep 17 00:00:00 2001
-From: dseefeld
-Date: Wed, 20 Oct 2021 21:49:51 +0000
-Subject: [PATCH] Remove dependency on MS.VS.Setup.Configuration.Interop
-
-Removes prebuilts.
-
-Background Issue: https://github.com/dotnet/source-build/issues/2542
----
- eng/Packages.props | 3 ---
- src/Build/Microsoft.Build.csproj | 4 +++-
- src/Directory.BeforeCommon.targets | 2 +-
- src/Samples/Directory.Build.props | 1 +
- src/Tasks/Microsoft.Build.Tasks.csproj | 4 +++-
- src/Utilities/Microsoft.Build.Utilities.csproj | 2 +-
- 6 files changed, 9 insertions(+), 7 deletions(-)
-
-diff --git a/eng/Packages.props b/eng/Packages.props
-index 2de607c5d..1668addc9 100644
---- a/eng/Packages.props
-+++ b/eng/Packages.props
-@@ -46,9 +46,6 @@
-
-
-
--
--
--
-
-
-
-diff --git a/src/Build/Microsoft.Build.csproj b/src/Build/Microsoft.Build.csproj
-index d08e337c5..3b173aee5 100644
---- a/src/Build/Microsoft.Build.csproj
-+++ b/src/Build/Microsoft.Build.csproj
-@@ -38,8 +38,10 @@
-
-
-
--
-+
-
-+
-+
-
-
-
-diff --git a/src/Directory.BeforeCommon.targets b/src/Directory.BeforeCommon.targets
-index 913c97b12..320bffa56 100644
---- a/src/Directory.BeforeCommon.targets
-+++ b/src/Directory.BeforeCommon.targets
-@@ -99,7 +99,7 @@
- $(DefineConstants);FEATURE_DEBUGGER
- $(DefineConstants);FEATURE_WIN32_REGISTRY
- $(DefineConstants);FEATURE_WORKINGSET
-- $(DefineConstants);FEATURE_VISUALSTUDIOSETUP
-+ $(DefineConstants);FEATURE_VISUALSTUDIOSETUP
- $(DefineConstants);FEATURE_MSCOREE
-
-
-diff --git a/src/Samples/Directory.Build.props b/src/Samples/Directory.Build.props
-index 6b9d6cd9f..317ef14a6 100644
---- a/src/Samples/Directory.Build.props
-+++ b/src/Samples/Directory.Build.props
-@@ -8,6 +8,7 @@
- false
-
- false
-+ true
-
-
-
-diff --git a/src/Tasks/Microsoft.Build.Tasks.csproj b/src/Tasks/Microsoft.Build.Tasks.csproj
-index d8f81bf99..3a5514094 100644
---- a/src/Tasks/Microsoft.Build.Tasks.csproj
-+++ b/src/Tasks/Microsoft.Build.Tasks.csproj
-@@ -999,8 +999,10 @@
-
-
-
--
-+
-
-+
-+
-
-
-
-diff --git a/src/Utilities/Microsoft.Build.Utilities.csproj b/src/Utilities/Microsoft.Build.Utilities.csproj
-index 09634e723..72d838d9d 100644
---- a/src/Utilities/Microsoft.Build.Utilities.csproj
-+++ b/src/Utilities/Microsoft.Build.Utilities.csproj
-@@ -25,7 +25,7 @@
-
-
-
--
-+
-
-
-
---
-2.31.1
-
diff --git a/src/SourceBuild/tarball/patches/nuget-client/0001-Remove-uneeded-source-build-patches-and-re-patch.patch b/src/SourceBuild/tarball/patches/nuget-client/0001-Remove-uneeded-source-build-patches-and-re-patch.patch
deleted file mode 100644
index e1497020f..000000000
--- a/src/SourceBuild/tarball/patches/nuget-client/0001-Remove-uneeded-source-build-patches-and-re-patch.patch
+++ /dev/null
@@ -1,293 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Matt Mitchell
-Date: Sat, 23 Oct 2021 16:41:24 -0700
-Subject: [PATCH] Remove uneeded source build patches and re-patch
-
----
- build/common.project.props | 16 ++++++----------
- build/packages.targets | 3 ++-
- .../NuGet.Build.Tasks.Pack.csproj | 4 ++--
- .../NuGet.CommandLine.XPlat.csproj | 2 +-
- .../SignCommand/CertificateProvider.cs | 4 ++--
- src/NuGet.Core/NuGet.Common/NuGet.Common.csproj | 1 -
- .../NuGet.Configuration.csproj | 3 +--
- .../NuGet.Frameworks/NuGet.Frameworks.csproj | 3 +--
- .../NuGet.PackageManagement.csproj | 2 +-
- .../Signing/Authoring/SignPackageRequest.cs | 2 ++
- .../NuGet.Packaging/Signing/Cms/NativeUtility.cs | 2 ++
- .../HttpSource/HttpRequestMessageExtensions.cs | 6 +++---
- .../HttpSource/HttpRetryHandler.cs | 2 +-
- .../HttpSourceAuthenticationHandler.cs | 2 +-
- .../NuGet.Versioning/NuGet.Versioning.csproj | 1 -
- 15 files changed, 25 insertions(+), 28 deletions(-)
-
-diff --git a/build/common.project.props b/build/common.project.props
-index 47b5a6b60..50c40bac5 100644
---- a/build/common.project.props
-+++ b/build/common.project.props
-@@ -10,24 +10,20 @@
-
-
-
-- $(DotNetBuildFromSource)
- PackageReference
- v4.7.2
- net472
-- netcoreapp2.1
-- net6.0
-+ net6.0
- netcoreapp5.0
-- netstandard2.0
-- net6.0
-+ $(DotNetBuildFromSource)
-+ netstandard2.0;net6.0
- $(NETFXTargetFramework);$(NETCoreTargetFramework)
- $(NETCoreTargetFramework)
-- $(TargetFrameworksExe);netcoreapp5.0
-- $(NETCoreTargetFramework);netcoreapp5.0
-- $(TargetFrameworksExe);net6.0
-+ $(TargetFrameworksExe);net6.0
-+ $(NETCoreTargetFramework);net6.0
- $(NETFXTargetFramework);$(NetStandardVersion)
- $(NetStandardVersion)
-- $(TargetFrameworksLibrary);netcoreapp5.0
-- $(TargetFrameworksLibrary);net6.0
-+ $(TargetFrameworksLibrary);net6.0
- $(NETFXTargetFramework);netcoreapp5.0
- $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\
- $(RepositoryRootDirectory)build\
-diff --git a/build/packages.targets b/build/packages.targets
-index d9b3006e9..99cb24a16 100644
---- a/build/packages.targets
-+++ b/build/packages.targets
-@@ -10,6 +10,7 @@
- 5.0.0
- 2.14.0-rtm-832
- 17.0.0-beta1-10402-05
-+ 5.0.1-rtm.21063.7
-
-
-
-@@ -34,7 +35,7 @@
-
-
-
--
-+
-
-
-
-diff --git a/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj b/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
-index c94acffd8..f4d083e52 100644
---- a/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
-+++ b/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
-@@ -177,7 +177,7 @@
-
- ilmerge\
- Desktop/
-- CoreCLR/
-+ CoreCLR/
-
-
-
-@@ -189,7 +189,7 @@
-
- $(PackagePathDir)
-
--
-+
-
-
-
-diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj b/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj
-index 21015c00a..e306cdee4 100644
---- a/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj
-+++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj
-@@ -18,7 +18,7 @@
-
-
-
--
-+
-
-
-
-diff --git a/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateProvider.cs b/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateProvider.cs
-index c6ea71243..beac41889 100644
---- a/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateProvider.cs
-+++ b/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateProvider.cs
-@@ -115,7 +115,7 @@ public static async Task GetCertificatesAsync(Certif
-
- return resultCollection;
- }
--
-+#pragma warning disable CS1998
- private static async Task LoadCertificateFromFileAsync(CertificateSourceOptions options)
- {
- X509Certificate2 cert;
-@@ -154,7 +154,7 @@ private static async Task LoadCertificateFromFileAsync(Certifi
-
- return cert;
- }
--
-+#pragma warning restore CS1998
- private static X509Certificate2Collection LoadCertificateFromStore(CertificateSourceOptions options)
- {
- X509Certificate2Collection resultCollection = null;
-diff --git a/src/NuGet.Core/NuGet.Common/NuGet.Common.csproj b/src/NuGet.Core/NuGet.Common/NuGet.Common.csproj
-index e30a079eb..c2b8fe241 100644
---- a/src/NuGet.Core/NuGet.Common/NuGet.Common.csproj
-+++ b/src/NuGet.Core/NuGet.Common/NuGet.Common.csproj
-@@ -5,7 +5,6 @@
-
- Common utilities and interfaces for all NuGet libraries.
- $(TargetFrameworksLibrary)
-- $(TargetFrameworks);net45
-
- $(NoWarn);CS1591;CS1574
- true
-diff --git a/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj b/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj
-index bbc5ba480..18b597c74 100644
---- a/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj
-+++ b/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj
-@@ -6,7 +6,6 @@
- NuGet's configuration settings implementation.
- $(NoWarn);CS1591
- $(TargetFrameworksLibrary)
-- $(TargetFrameworks);net45
-
- true
- true
-@@ -29,7 +28,7 @@
-
-
-
--
-+
-
-
-
-diff --git a/src/NuGet.Core/NuGet.Frameworks/NuGet.Frameworks.csproj b/src/NuGet.Core/NuGet.Frameworks/NuGet.Frameworks.csproj
-index b78b1f2ea..a89b516c6 100644
---- a/src/NuGet.Core/NuGet.Frameworks/NuGet.Frameworks.csproj
-+++ b/src/NuGet.Core/NuGet.Frameworks/NuGet.Frameworks.csproj
-@@ -4,8 +4,7 @@
-
-
- NuGet's understanding of target frameworks.
-- $(TargetFrameworksLibrary);netstandard2.0
-- $(TargetFrameworksLibrary);net40
-+ $(TargetFrameworksLibrary);netstandard2.0
-
- $(NoWarn);CS1591;CS1574;CS1573
- true
-diff --git a/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj b/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj
-index dfbfcaa8d..a6bb51d6b 100644
---- a/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj
-+++ b/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj
-@@ -35,7 +35,7 @@
-
-
-
--
-+
-
-
-
-diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Authoring/SignPackageRequest.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Authoring/SignPackageRequest.cs
-index e0cfae99f..ce19f2d6e 100644
---- a/src/NuGet.Core/NuGet.Packaging/Signing/Authoring/SignPackageRequest.cs
-+++ b/src/NuGet.Core/NuGet.Packaging/Signing/Authoring/SignPackageRequest.cs
-@@ -98,7 +98,9 @@ protected virtual void Dispose(bool disposing)
- Chain?.Dispose();
-
- #if IS_SIGNING_SUPPORTED
-+#pragma warning disable CA1416
- PrivateKey?.Dispose();
-+#pragma warning restore CA1416
- #endif
- }
-
-diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Cms/NativeUtility.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Cms/NativeUtility.cs
-index 565ac60b7..d57e38a65 100644
---- a/src/NuGet.Core/NuGet.Packaging/Signing/Cms/NativeUtility.cs
-+++ b/src/NuGet.Core/NuGet.Packaging/Signing/Cms/NativeUtility.cs
-@@ -120,7 +120,9 @@ internal static SignedCms NativeSign(CmsSigner cmsSigner, byte[] data, CngKey pr
-
- signerInfo.cbSize = (uint)Marshal.SizeOf(signerInfo);
- signerInfo.pCertInfo = MarshalUtility.PtrToStructure(cmsSigner.Certificate.Handle).pCertInfo;
-+#pragma warning disable CA1416
- signerInfo.hCryptProvOrhNCryptKey = privateKey.Handle.DangerousGetHandle();
-+#pragma warning restore CA1416
- signerInfo.HashAlgorithm.pszObjId = cmsSigner.DigestAlgorithm.Value;
-
- if (cmsSigner.SignerIdentifierType == SubjectIdentifierType.SubjectKeyIdentifier)
-diff --git a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRequestMessageExtensions.cs b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRequestMessageExtensions.cs
-index 7c9595268..1ca751850 100644
---- a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRequestMessageExtensions.cs
-+++ b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRequestMessageExtensions.cs
-@@ -34,7 +34,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage request)
- clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
- }
-
--#if NET5_0
-+#if NET5_0 || NET6_0
- var clonedOptions = (IDictionary)clone.Options;
- foreach (var option in request.Options)
- {
-@@ -118,7 +118,7 @@ public static void SetConfiguration(this HttpRequestMessage request, HttpRequest
- throw new ArgumentNullException(nameof(configuration));
- }
-
--#if NET5_0
-+#if NET5_0 || NET6_0
- request.Options.Set(new HttpRequestOptionsKey(NuGetConfigurationKey), configuration);
- #else
- request.Properties[NuGetConfigurationKey] = configuration;
-@@ -128,7 +128,7 @@ public static void SetConfiguration(this HttpRequestMessage request, HttpRequest
- private static T GetProperty(this HttpRequestMessage request, string key)
- {
-
--#if NET5_0
-+#if NET5_0 || NET6_0
- if (request.Options.TryGetValue(new HttpRequestOptionsKey(key), out T result))
- #else
- object result;
-diff --git a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandler.cs b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandler.cs
-index c7bcb54bb..30d86fcc9 100644
---- a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandler.cs
-+++ b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandler.cs
-@@ -113,7 +113,7 @@ internal HttpRetryHandler(IEnvironmentVariableReader environmentVariableReader)
- headerStopwatch = new Stopwatch();
- stopwatches.Add(headerStopwatch);
- }
--#if NET5_0
-+#if NET5_0 || NET6_0
- requestMessage.Options.Set(new HttpRequestOptionsKey>(StopwatchPropertyName), stopwatches);
- #else
- requestMessage.Properties[StopwatchPropertyName] = stopwatches;
-diff --git a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpSourceAuthenticationHandler.cs b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpSourceAuthenticationHandler.cs
-index b9ab58ce7..ebf738e52 100644
---- a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpSourceAuthenticationHandler.cs
-+++ b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpSourceAuthenticationHandler.cs
-@@ -98,7 +98,7 @@ protected override async Task SendAsync(HttpRequestMessage
- {
- List stopwatches = null;
-
--#if NET5_0
-+#if NET5_0 || NET6_0
- if (request.Options.TryGetValue(
- new HttpRequestOptionsKey>(HttpRetryHandler.StopwatchPropertyName),
- out stopwatches))
-diff --git a/src/NuGet.Core/NuGet.Versioning/NuGet.Versioning.csproj b/src/NuGet.Core/NuGet.Versioning/NuGet.Versioning.csproj
-index 180293944..8498664b9 100644
---- a/src/NuGet.Core/NuGet.Versioning/NuGet.Versioning.csproj
-+++ b/src/NuGet.Core/NuGet.Versioning/NuGet.Versioning.csproj
-@@ -4,7 +4,6 @@
-
-
- $(TargetFrameworksLibrary)
-- $(TargetFrameworks);net45
-
- NuGet's implementation of Semantic Versioning.
- semver;semantic versioning
diff --git a/src/SourceBuild/tarball/patches/nuget-client/0010-Re-enable-fullfx-TFM-in-NuGet.patch b/src/SourceBuild/tarball/patches/nuget-client/0010-Re-enable-fullfx-TFM-in-NuGet.patch
deleted file mode 100644
index b71f75cb9..000000000
--- a/src/SourceBuild/tarball/patches/nuget-client/0010-Re-enable-fullfx-TFM-in-NuGet.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 7f35d623761748721496abcbae2d6f11d4cf1ca8 Mon Sep 17 00:00:00 2001
-From: Chris Rummel
-Date: Fri, 22 Oct 2021 21:12:51 -0500
-Subject: [PATCH] Re-enable fullfx TFM in NuGet.
-
----
- build/common.project.props | 3 +--
- .../NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj | 2 +-
- 2 files changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/build/common.project.props b/build/common.project.props
-index 000702f58..b29968eaf 100644
---- a/build/common.project.props
-+++ b/build/common.project.props
-@@ -18,11 +18,10 @@
- $(DotNetBuildFromSource)
- netstandard2.0;net6.0
- $(NETFXTargetFramework);$(NETCoreTargetFramework)
-- $(NETCoreTargetFramework)
-+ $(NETCoreTargetFramework)
- $(TargetFrameworksExe);net6.0
- $(NETCoreTargetFramework);net6.0
- $(NETFXTargetFramework);$(NetStandardVersion)
-- $(NetStandardVersion)
- $(TargetFrameworksLibrary);net6.0
- $(NETFXTargetFramework);netcoreapp5.0
- $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\
-diff --git a/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj b/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
-index f4d083e52..c4eb79b4c 100644
---- a/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
-+++ b/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
-@@ -176,7 +176,7 @@
-
-
- ilmerge\
-- Desktop/
-+ Desktop/
- CoreCLR/
-
-
---
-2.31.1
-
diff --git a/src/SourceBuild/tarball/patches/razor-compiler/0001-Exclude-test-projects-from-source-build.patch b/src/SourceBuild/tarball/patches/razor-compiler/0001-Exclude-test-projects-from-source-build.patch
new file mode 100644
index 000000000..dded6ec2f
--- /dev/null
+++ b/src/SourceBuild/tarball/patches/razor-compiler/0001-Exclude-test-projects-from-source-build.patch
@@ -0,0 +1,21 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Logan Bussell
+Date: Wed, 13 Apr 2022 15:03:44 -0700
+Subject: [PATCH] Exclude test projects from source-build
+
+Backport PR: https://github.com/dotnet/razor-compiler/pull/226
+---
+ src/test/Directory.Build.props | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/test/Directory.Build.props b/src/test/Directory.Build.props
+index 95172906..047e4619 100644
+--- a/src/test/Directory.Build.props
++++ b/src/test/Directory.Build.props
+@@ -8,5 +8,6 @@
+ -->
+ true
+ false
++ true
+
+
diff --git a/src/SourceBuild/tarball/patches/razor-compiler/0002-retarget-Razor-Syntax-Genreator-to-net6.0.patch b/src/SourceBuild/tarball/patches/razor-compiler/0002-retarget-Razor-Syntax-Genreator-to-net6.0.patch
new file mode 100644
index 000000000..e101f8041
--- /dev/null
+++ b/src/SourceBuild/tarball/patches/razor-compiler/0002-retarget-Razor-Syntax-Genreator-to-net6.0.patch
@@ -0,0 +1,22 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Logan Bussell
+Date: Thu, 14 Apr 2022 16:27:26 -0700
+Subject: [PATCH] retarget Razor Syntax Genreator to net6.0
+
+Backport PR: https://github.com/dotnet/razor-compiler/pull/226
+---
+ src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj b/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj
+index 924379ac..362f0e3b 100644
+--- a/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj
++++ b/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj
+@@ -3,6 +3,7 @@
+
+ Generates Razor syntax nodes from xml. For internal use only.
+ netcoreapp3.1
++ net6.0
+ dotnet-razorsyntaxgenerator
+ RazorSyntaxGenerator
+ Exe
diff --git a/src/SourceBuild/tarball/patches/roslyn/0002-Apply-arcade-powered-source-build-patches-55823.patch b/src/SourceBuild/tarball/patches/roslyn/0002-Apply-arcade-powered-source-build-patches-55823.patch
deleted file mode 100644
index 8e3884438..000000000
--- a/src/SourceBuild/tarball/patches/roslyn/0002-Apply-arcade-powered-source-build-patches-55823.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 1a415d2019d74bcf009134326d1c25798589de64 Mon Sep 17 00:00:00 2001
-From: Chris Rummel
-Date: Tue, 19 Oct 2021 11:39:32 -0500
-Subject: [PATCH] Apply arcade-powered source-build patches (#55823)
-
-Don't include desktop artifacts that don't exist in source-build.
-Source-build doesn't have these artifacts available, even when we eventually will
-build desktop TFMs, because Roslyn is one of the first builds in source-build.
-Instead Roslyn is picking up reference packages that don't have the `lib` directory
-which is causing a build failure. This disables the attempt to grab these desktop
-artifacts so source-build just skips them instead.
-
-Backported to roslyn with https://github.com/dotnet/roslyn/pull/55823
----
- .../DesktopCompilerArtifacts.targets | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/NuGet/Microsoft.Net.Compilers.Toolset/DesktopCompilerArtifacts.targets b/src/NuGet/Microsoft.Net.Compilers.Toolset/DesktopCompilerArtifacts.targets
-index c8b87ab6958..107ff051b51 100644
---- a/src/NuGet/Microsoft.Net.Compilers.Toolset/DesktopCompilerArtifacts.targets
-+++ b/src/NuGet/Microsoft.Net.Compilers.Toolset/DesktopCompilerArtifacts.targets
-@@ -20,7 +20,7 @@
- VS training data to the assemblies they produce.
- -->
-
--
-+
-
-
-
---
-2.31.1
-
diff --git a/src/SourceBuild/tarball/patches/roslyn/0003-remove-Microsoft.DotNet-prebuilts.patch b/src/SourceBuild/tarball/patches/roslyn/0003-remove-Microsoft.DotNet-prebuilts.patch
deleted file mode 100644
index 28d60fc27..000000000
--- a/src/SourceBuild/tarball/patches/roslyn/0003-remove-Microsoft.DotNet-prebuilts.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 7260c572b1ce424f7ff3a64aa3227417c6a7a676 Mon Sep 17 00:00:00 2001
-From: Logan Bussell <36081148+lbussell@users.noreply.github.com>
-Date: Fri, 8 Oct 2021 00:56:41 +0000
-Subject: [PATCH] remove Microsoft.DotNet prebuilts
-
-Pull request for applying this patch: https://github.com/dotnet/roslyn/pull/57159
----
- eng/Tools.props | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/eng/Tools.props b/eng/Tools.props
-index 1579b510558..944448855ee 100644
---- a/eng/Tools.props
-+++ b/eng/Tools.props
-@@ -1,6 +1,6 @@
-
-
--
-+
-
@@ -76,19 +82,19 @@
+ DestinationPath="%(BundledManifests.FeatureBand)/$([MSBuild]::ValueOrDefault('%(Identity)', '').ToLower())/localize"/>
+ DestinationFolder="$(RedistLayoutPath)sdk-manifests/%(DestinationPath)"/>
diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets
index a59ed388f..645c4681b 100644
--- a/src/redist/targets/Crossgen.targets
+++ b/src/redist/targets/Crossgen.targets
@@ -41,8 +41,10 @@
-
+
+
+
diff --git a/src/redist/targets/GenerateBundledVersions.targets b/src/redist/targets/GenerateBundledVersions.targets
index 580dd9423..db2c5feb2 100644
--- a/src/redist/targets/GenerateBundledVersions.targets
+++ b/src/redist/targets/GenerateBundledVersions.targets
@@ -305,6 +305,7 @@ Copyright (c) .NET Foundation. All rights reserved.
AppHostPackNamePattern="Microsoft.NETCore.App.Host.**RID**"
AppHostPackVersion="$(_NETCoreAppPackageVersion)"
AppHostRuntimeIdentifiers="@(NetCoreAppHostRids, '%3B')"
+ ExcludedRuntimeIdentifiers="android"
/>
win-arm64
+
+ win-x86
+ win-x64
+ win-arm
+
+
$(CoreSetupRootUrl)$(CoreSetupBlobVersion)
@@ -180,6 +186,13 @@
packs/%(PackageName)/%(PackageVersion)
+
+ Microsoft.NETCore.App.Host.$(x64AppHostRid)
+ $(MicrosoftNETCoreAppHostPackageVersion)
+ $(TargetFramework)
+ packs/%(PackageName)/%(PackageVersion)
+
+
$(CoreSetupRootUrl)$(CoreSetupBlobVersion)
@@ -459,7 +472,7 @@
@@ -468,6 +481,29 @@
Overwrite="true" />
+
+
+
+
+
+
+ "Newtonsoft.Json": "13.0.1.0"
+
+
+ Newtonsoft.Json/13.0.1.0
+
+
+
+
+
+
+
+
+
@@ -560,6 +596,7 @@
LayoutWorkloadUserLocalMarker;
LayoutBundledTools;
RetargetTools;
+ FixNewtonsoftInTesthostDepsJson;
CrossgenLayout;
LayoutAppHostTemplate;
GeneratePrecomputedRarCache;
diff --git a/src/redist/targets/GenerateMSIs.targets b/src/redist/targets/GenerateMSIs.targets
index 3300b2e28..47aac67a4 100644
--- a/src/redist/targets/GenerateMSIs.targets
+++ b/src/redist/targets/GenerateMSIs.targets
@@ -414,7 +414,7 @@
/dev/null 2>&1 || true
}
-INSTALL_TEMP_HOME=/tmp/dotnet-installer
-[ -d $INSTALL_TEMP_HOME ] || mkdir $INSTALL_TEMP_HOME
+INSTALL_TEMP_HOME=$(mktemp -d) # mktemp should set 700 perm automatically
HOME=$INSTALL_TEMP_HOME first_run
diff --git a/src/redist/targets/packaging/osx/clisdk/scripts/postinstall b/src/redist/targets/packaging/osx/clisdk/scripts/postinstall
index 28339be99..86710223d 100644
--- a/src/redist/targets/packaging/osx/clisdk/scripts/postinstall
+++ b/src/redist/targets/packaging/osx/clisdk/scripts/postinstall
@@ -12,7 +12,7 @@ first_run() {
$INSTALL_DESTINATION/dotnet exec $INSTALL_DESTINATION/sdk/%SDK_VERSION%/dotnet.dll internal-reportinstallsuccess "$1" > /dev/null 2>&1 || true
}
-[ -d $INSTALL_TEMP_HOME ] || mkdir $INSTALL_TEMP_HOME
+INSTALL_TEMP_HOME=$(mktemp -d) # mktemp should set 700 perm automatically
HOME=$INSTALL_TEMP_HOME first_run
exit 0
diff --git a/src/redist/targets/packaging/windows/clisdk/bundle.thm b/src/redist/targets/packaging/windows/clisdk/bundle.thm
index 89cf63055..ebe591ccc 100644
--- a/src/redist/targets/packaging/windows/clisdk/bundle.thm
+++ b/src/redist/targets/packaging/windows/clisdk/bundle.thm
@@ -40,8 +40,8 @@
#(loc.FilesInUseLabel)
-
-
+
+
diff --git a/src/redist/targets/packaging/windows/clisdk/bundle.wxs b/src/redist/targets/packaging/windows/clisdk/bundle.wxs
index ac9261a94..148487bde 100644
--- a/src/redist/targets/packaging/windows/clisdk/bundle.wxs
+++ b/src/redist/targets/packaging/windows/clisdk/bundle.wxs
@@ -151,7 +151,31 @@
-
+
+
+
+
+
@@ -208,19 +232,7 @@
-
-
+
diff --git a/test/EndToEnd/ValidateInsertedManifests.cs b/test/EndToEnd/ValidateInsertedManifests.cs
index 1d9ec8a94..5d9b44df0 100644
--- a/test/EndToEnd/ValidateInsertedManifests.cs
+++ b/test/EndToEnd/ValidateInsertedManifests.cs
@@ -34,7 +34,7 @@ namespace EndToEnd.Tests
File.Exists(manifestFile).Should().BeTrue();
using var fileStream = new FileStream(manifestFile, FileMode.Open, FileAccess.Read);
- Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream);
+ Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream, manifestFile);
readManifest.ShouldNotThrow("manifestId:" + manifestId + " manifestFile:" + manifestFile + "is invalid");
}