From d2df35244f73af581f7ff9d0eb1d042d7af42f76 Mon Sep 17 00:00:00 2001 From: Keegan Caruso Date: Tue, 28 Mar 2023 10:55:22 -0700 Subject: [PATCH] Move type out of aspnetcore folder (#2154) conditional compile for targets Co-authored-by: Keegan Caruso --- .../MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs | 2 ++ 1 file changed, 2 insertions(+) rename src/Microsoft.Identity.Web.TokenAcquisition/{AspNetCore => }/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs (98%) diff --git a/src/Microsoft.Identity.Web.TokenAcquisition/AspNetCore/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs b/src/Microsoft.Identity.Web.TokenAcquisition/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs similarity index 98% rename from src/Microsoft.Identity.Web.TokenAcquisition/AspNetCore/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs rename to src/Microsoft.Identity.Web.TokenAcquisition/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs index d0b2eb8b7..ada5f856d 100644 --- a/src/Microsoft.Identity.Web.TokenAcquisition/AspNetCore/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs +++ b/src/Microsoft.Identity.Web.TokenAcquisition/MicrosoftIdentityAppCallingWebApiAuthenticationBuilder.cs @@ -49,7 +49,9 @@ public MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddInMemoryTokenCach Services.AddMemoryCache(); } +# if NET6_0_OR_GREATER || NETCOREAPP3_1 Services.AddHttpContextAccessor(); +#endif Services.TryAddSingleton(); return this; }