From b82513cbf80e265f2998227bf0b9b64a774a81c9 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Thu, 26 Mar 2026 06:27:54 +0900 Subject: [PATCH 1/3] deps: update roslyn package versions to 5.3.0 --- Directory.Packages.props | 18 +++++++++--------- src/Docfx.Dotnet/SymbolFormatter.Symbols.cs | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 4d80612a67a..c660b2de933 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -25,17 +25,17 @@ - + - - - - - - - - + + + + + + + + diff --git a/src/Docfx.Dotnet/SymbolFormatter.Symbols.cs b/src/Docfx.Dotnet/SymbolFormatter.Symbols.cs index 439dc11d3c9..a918eea53ed 100644 --- a/src/Docfx.Dotnet/SymbolFormatter.Symbols.cs +++ b/src/Docfx.Dotnet/SymbolFormatter.Symbols.cs @@ -217,6 +217,8 @@ private class PropertySymbol : IPropertySymbol public IPropertySymbol PartialDefinitionPart => Inner.PartialDefinitionPart; public IPropertySymbol PartialImplementationPart => Inner.PartialImplementationPart; public bool IsPartialDefinition => Inner.IsPartialDefinition; + public IPropertySymbol ReduceExtensionMember(ITypeSymbol receiverType) => Inner.ReduceExtensionMember(receiverType); + } public class MethodSymbol : IMethodSymbol @@ -367,6 +369,7 @@ public class MethodSymbol : IMethodSymbol public ImmutableArray GetReturnTypeAttributes() => Inner.GetReturnTypeAttributes(); public ITypeSymbol GetTypeInferredDuringReduction(ITypeParameterSymbol reducedFromTypeParameter) => Inner.GetTypeInferredDuringReduction(reducedFromTypeParameter); public IMethodSymbol ReduceExtensionMethod(ITypeSymbol receiverType) => Inner.ReduceExtensionMethod(receiverType); + public IMethodSymbol ReduceExtensionMember(ITypeSymbol receiverType) => Inner.ReduceExtensionMember(receiverType); public ImmutableArray ToDisplayParts(SymbolDisplayFormat format = null) => Inner.ToDisplayParts(format); public string ToDisplayString(SymbolDisplayFormat format = null) => Inner.ToDisplayString(format); public ImmutableArray ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null) => Inner.ToMinimalDisplayParts(semanticModel, position, format); From 2a5fcb048dc46bed4d79df51e361615aece2e874 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Thu, 7 May 2026 13:28:12 +0900 Subject: [PATCH 2/3] chore: resolve ide0005 warning --- test/Docfx.Dotnet.Tests/SymbolUrlResolverUnitTest.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/test/Docfx.Dotnet.Tests/SymbolUrlResolverUnitTest.cs b/test/Docfx.Dotnet.Tests/SymbolUrlResolverUnitTest.cs index 2fe299a1a5e..b2d68fbafde 100644 --- a/test/Docfx.Dotnet.Tests/SymbolUrlResolverUnitTest.cs +++ b/test/Docfx.Dotnet.Tests/SymbolUrlResolverUnitTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; -using Microsoft.CodeAnalysis; using Xunit; namespace Docfx.Dotnet.Tests; From c1ab6f6fc92164739ef3e61f08b4d5c51ecc0c1c Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Thu, 19 Mar 2026 20:16:15 +0900 Subject: [PATCH 3/3] fix: httpclient error on macos ci --- src/Docfx.Build/XRefMaps/XRefMapDownloader.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs b/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs index a4ebdeb330f..5512388b115 100644 --- a/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs +++ b/src/Docfx.Build/XRefMaps/XRefMapDownloader.cs @@ -3,6 +3,8 @@ using System.IO.Compression; using System.Net; +using System.Net.Security; +using System.Security.Cryptography.X509Certificates; using Docfx.Common; using EnvironmentVariables = Docfx.DataContracts.Common.Constants.EnvironmentVariables; @@ -158,6 +160,20 @@ private static async Task DownloadFromWebAsync(Uri uri, CancellationTok { AutomaticDecompression = DecompressionMethods.All, CheckCertificateRevocationList = !EnvironmentVariables.NoCheckCertificateRevocationList, + ServerCertificateCustomValidationCallback = (req, cert, chain, errors) => + { + if (errors == SslPolicyErrors.None) + return true; + + // Ignore OCSP validation error on macos. (On GitHub Actions environment. OSCP HTTP access seems be blocked) + if (OperatingSystem.IsMacOS()) + { + if (chain?.ChainStatus != null && chain.ChainStatus.All(s => s.Status == X509ChainStatusFlags.RevocationStatusUnknown)) + return true; + } + + return false; + } }) { Timeout = TimeSpan.FromMinutes(30), // Default: 100 seconds