dotnet-installer/src/SourceBuild/tarball/patches/runtime/0002-Fully-qualify-conflicting-runtime-and-roslyn-APIs.patch
Michael Simons 8a0eb58a5a
Eliminate 7.0 source-build prebuilts (#14167)
* Add runtime patch to fully qualify conflicting runtime and roslyn APIs

* Add aspnetcore patch for lifetime scope

* Add prebuilt removal patches for fixes that haven't flowed

* Use repo name for git-info version number special cases

* Delete aspnetcore patches

* Update Microsoft.Deployment.DotNet.Releases Versions.Details.xml dependency

* Remove backported sdk patch

* Add runtime patch to disable analyzers

* Add patch to remove app host prebuilt

* Add source-build patch for jwt prebuilt

* Add patches for command-line-api and msbuild net7.0 TFM

* Update aspnetcore patch

* Update source-build-externals

* Update aspnetcore patch

* Add source-build-externals patch

* Update SBRP version

* Revert tfm patches

* Revert "Revert tfm patches"

This reverts commit 9cf3f5f6230c0f88e0a9955dbeb545495bc3e855.

* Revert msbuild net70 tfm patch

* misc updates

* Add linker patch

* Add linker patch

* Add patch for retargeting fsharp

* Add patch for retargeting sdk

* Resolve patch conflict from latest merge

* Remove failing patches

* Remove unnecessary patch

* Re-add msbuild patch for net7.0 TFM

* Revert "Remove failing patches"

This reverts commit 9ca3256e9b670d2fc23aeebb785fa8b5c5cca6a4.

* Fix fsharp patch

* Fix msbuild patch typo

* Update fsharp patch

* Clean up SDK patch

* Resolve patch conflicts from last merge

* Fix discrepancy between versions of DotNetDeltaApplier TFM version

* Update SDK patch

* Fix fsharp patch

* Fix msbuild build error

* Update nuget-client to net7.0

* Update order of projects in known-good

* Fix fsharp xml doc path for net7.0

* Add missing change in msbuild patch

* Fix SDK patch

* Add runtime patch for targeting net7.0

* Fix runtime-portable build

* Add patch for roslyn-analyzers net7.0 TFM

* Fix runtime patches

* Add patch for targeting net7.0 in roslyn

* Fix Microsoft.CSharp.Core.targets location

* Update patches

* Update roslyn patch

* Update prebuilts version

* Update roslyn patch again

* Add vstest patch for targeting net7.0

* Change minimum supported TFM in runtime

* Revert "Add vstest patch for targeting net7.0"

This reverts commit 9049c9f585e52194312118ad8e5d15c0d19296b2.

* Add patch to update compatibility suppressions in runtime

* Use dev/haplois/net67 branch of vstest for validation. PR: https://github.com/microsoft/vstest/pull/3944

* Get rid of 2.0.X prebuilts from xliff

* Disable targeting windows in roslyn for source-build

* Delete backported runtime patches

* Fix xliff patch

* Remove backported roslyn patch

* Remove backported fsharp patch

* Update SDK patch

* Remove backported source build patches

* Update patches

* Remove roslyn patch for net7.0 TFM

* Update SDK patch roslyn bits location

Co-authored-by: Logan Bussell <loganbussell@microsoft.com>
2022-09-13 15:55:40 -05:00

36 lines
2.3 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Logan Bussell <loganbussell@microsoft.com>
Date: Thu, 14 Jul 2022 14:53:35 -0700
Subject: [PATCH 3/5] Fully qualify conflicting runtime and roslyn APIs
---
.../System.Private.CoreLib/gen/EventSourceGenerator.Parser.cs | 2 +-
.../System.Text.RegularExpressions/gen/RegexGenerator.Parser.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libraries/System.Private.CoreLib/gen/EventSourceGenerator.Parser.cs b/src/libraries/System.Private.CoreLib/gen/EventSourceGenerator.Parser.cs
index 43a498b589a..1bad8f3753c 100644
--- a/src/libraries/System.Private.CoreLib/gen/EventSourceGenerator.Parser.cs
+++ b/src/libraries/System.Private.CoreLib/gen/EventSourceGenerator.Parser.cs
@@ -15,7 +15,7 @@ namespace Generators
{
public partial class EventSourceGenerator
{
- private static EventSourceClass? GetSemanticTargetForGeneration(GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)
+ private static EventSourceClass? GetSemanticTargetForGeneration(Microsoft.CodeAnalysis.DotnetRuntime.Extensions.GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)
{
const string EventSourceAttribute = "System.Diagnostics.Tracing.EventSourceAttribute";
diff --git a/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.Parser.cs b/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.Parser.cs
index 7a472a994c9..36dc7500bea 100644
--- a/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.Parser.cs
+++ b/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.Parser.cs
@@ -20,7 +20,7 @@ public partial class RegexGenerator
// Returns null if nothing to do, Diagnostic if there's an error to report, or RegexType if the type was analyzed successfully.
private static object? GetSemanticTargetForGeneration(
- GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)
+ Microsoft.CodeAnalysis.DotnetRuntime.Extensions.GeneratorAttributeSyntaxContext context, CancellationToken cancellationToken)
{
var methodSyntax = (MethodDeclarationSyntax)context.TargetNode;
SemanticModel sm = context.SemanticModel;