From e7dddb9fef452438f5cdee58abdf23692ebf1d55 Mon Sep 17 00:00:00 2001 From: wuyangfan Date: Mon, 25 May 2026 10:38:56 +0800 Subject: [PATCH] fix: resolve ambiguous MiniProfilerExtensions type reference MiniProfiler.Shared and MiniProfiler.AspNetCore both defined a static MiniProfilerExtensions class in StackExchange.Profiling, causing CS0433 when callers used the fully qualified type name (for example in source generators). Rename the ASP.NET Core extension holder to MiniProfilerAspNetCoreExtensions. Extension method call sites are unchanged. Fixes #683 Co-authored-by: Cursor --- src/MiniProfiler.AspNetCore/MiniProfilerExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MiniProfiler.AspNetCore/MiniProfilerExtensions.cs b/src/MiniProfiler.AspNetCore/MiniProfilerExtensions.cs index 18ceb8eb..bfe051ad 100644 --- a/src/MiniProfiler.AspNetCore/MiniProfilerExtensions.cs +++ b/src/MiniProfiler.AspNetCore/MiniProfilerExtensions.cs @@ -7,7 +7,7 @@ namespace StackExchange.Profiling /// /// Extension methods for MiniProfiler /// - public static class MiniProfilerExtensions + public static class MiniProfilerAspNetCoreExtensions { /// /// Renders script tag for including MiniProfiler.