diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fec18303d..5558275b5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.2.3" + ".": "3.2.4" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 28a4df825..a9714a776 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.4](https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/compare/3.2.3...3.2.4) (2025-03-12) + + +### Bug Fixes + +* ensures valid handler is returned in browser scenarios ([869a498](https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/commit/869a498234fefa69cb3afd7c7e77a445a89f8498)) +* ensures valid handler is returned in browser scenarios ([5268497](https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/commit/52684971eb816feb41a90be2ca3048515773746c)) + ## [3.2.3](https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/compare/3.2.2...3.2.3) (2025-01-28) diff --git a/pipelines/productionBuild.yml b/pipelines/productionBuild.yml index 2e705ed1a..a059a5c5a 100644 --- a/pipelines/productionBuild.yml +++ b/pipelines/productionBuild.yml @@ -58,9 +58,9 @@ extends: inputs: version: 6.x - task: UseDotNet@2 - displayName: 'Use .NET 8 for trimming validation' + displayName: 'Use .NET 9 for trimming validation' inputs: - version: 8.x + version: 9.x - task: PowerShell@2 displayName: 'Set Java Home to use Java 11' inputs: diff --git a/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj b/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj index 6239adf04..feb39bcae 100644 --- a/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj +++ b/src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj @@ -21,7 +21,7 @@ 35MSSharedLib1024.snk true - 3.2.3 + 3.2.4 @@ -63,17 +63,17 @@ - - + + - - - - - - - - + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs b/src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs index 0bd3a4244..d94b157cc 100644 --- a/src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs +++ b/src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs @@ -9,6 +9,7 @@ namespace Microsoft.Graph using System.Net; using System.Net.Http; using System.Net.Http.Headers; + using System.Runtime.InteropServices; using System.Threading; using Azure.Core; using Microsoft.Graph.Authentication; @@ -253,6 +254,11 @@ internal static (HttpMessageHandler Pipeline, FeatureFlag FeatureFlags) CreatePi /// internal static HttpMessageHandler GetNativePlatformHttpHandler(IWebProxy proxy = null) { + if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("browser"))) + { + // We can't produce a browser specific binary as the TFM is only available in net8 and above. + return new HttpClientHandler { AllowAutoRedirect = false }; + } #if IOS || MACCATALYST return new NSUrlSessionHandler { AllowAutoRedirect = false }; #elif MACOS diff --git a/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj b/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj index c74b4dc4f..ba5e9a993 100644 --- a/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj +++ b/tests/Microsoft.Graph.DotnetCore.Core.Test/Microsoft.Graph.DotnetCore.Core.Test.csproj @@ -34,7 +34,7 @@ all - + runtime; build; native; contentfiles; analyzers; buildtransitive all