Skip to content

Commit

Permalink
fix: Fixed Experimental attribute namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jan 7, 2025
1 parent b6e0404 commit 8475da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/AutoSDK/Sources/Sources.Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ public static string GenerateExtensionMethod(
{(endPoint.IsDeprecated ? "[global::System.Obsolete(\"This method marked as deprecated.\")]" : " ")}
{(endPoint.Settings.UseExperimentalAttributes is SdkFeatureUsage.Always or SdkFeatureUsage.InSupportedTargetFrameworks &&
!string.IsNullOrWhiteSpace(endPoint.ExperimentalStage)
? $"[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: \"{endPoint.Settings.Namespace.ToUpperInvariant()}_{endPoint.ExperimentalStage.ToUpperInvariant()}_001\")]"
? $"[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: \"{endPoint.Settings.Namespace.Replace(".", "_").ToUpperInvariant()}_{endPoint.ExperimentalStage.ToUpperInvariant()}_001\")]"
: " ")}
{(isInterface ? "" : "public async ")}{taskType} {endPoint.MethodName}(
{endPoint.Parameters.Where(static x => x.IsRequired).Select(x => $@"
Expand Down

0 comments on commit 8475da0

Please sign in to comment.