diff --git a/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.cs b/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.cs index 3682876..a2a52e1 100644 --- a/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.cs +++ b/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.cs @@ -1216,8 +1216,6 @@ public Task PutForAppAsync( Action? downstreamApiOptionsOverride = null, CancellationToken cancellationToken = default)where TOutput : class; -#if NETSTANDARD2_1_OR_GREATER || NET - /// /// Calls, using , a downstream API with some input data . /// By default the input data is serialized in JSON but you can provide your own serializer in the action @@ -1368,8 +1366,6 @@ public Task PatchForAppAsync( Action? downstreamApiOptionsOverride = null, CancellationToken cancellationToken = default)where TOutput : class; -#endif // NETSTANDARD2_1_OR_GREATER || NET - /// /// Calls, using , a downstream API with some input data . /// By default the input data is serialized in JSON but you can provide your own serializer in the action diff --git a/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.tt b/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.tt index 74fa2ef..edf828d 100644 --- a/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.tt +++ b/src/Microsoft.Identity.Abstractions/DownstreamApi/IDownstreamApi.HttpMethods.tt @@ -41,7 +41,7 @@ namespace Microsoft.Identity.Abstractions foreach(string httpMethod in new string[]{ "Get", "Post", "Put", "Patch", "Delete"} ) { - if (httpMethod == "Patch") + if (httpMethod == "Patch" && framework != "net8") { #> @@ -140,7 +140,7 @@ namespace Microsoft.Identity.Abstractions } #> <# - if (httpMethod == "Patch") + if (httpMethod == "Patch" && framework != "net8") { #>