From 4227d69ce3d46dd17d844aaf71b369dc4508255b Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 9 Apr 2026 11:01:25 +0200 Subject: [PATCH] Switched compiler version --- .../MappingRegistryGenerator.cs | 13 ++++++++++--- .../SourceGeneratedMappings.csproj | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/SourceGeneratedMappings/MappingRegistryGenerator.cs b/app/SourceGeneratedMappings/MappingRegistryGenerator.cs index cf39db98..4a345d2d 100644 --- a/app/SourceGeneratedMappings/MappingRegistryGenerator.cs +++ b/app/SourceGeneratedMappings/MappingRegistryGenerator.cs @@ -9,7 +9,9 @@ using Microsoft.CodeAnalysis.Text; namespace SourceGeneratedMappings; [Generator] +#pragma warning disable RS1036 public sealed class MappingRegistryGenerator : IIncrementalGenerator +#pragma warning restore RS1036 { private const string GENERATED_NAMESPACE = "AIStudio.Tools.PluginSystem.Assistants.Icons"; private const string ROOT_TYPE_NAME = "MudBlazor.Icons"; @@ -80,8 +82,8 @@ public sealed class MappingRegistryGenerator : IIncrementalGenerator continue; icons.Add(new IconDefinition( - QualifiedName: $"Icons.{groupPath}.{field.Name}", - Svg: svg)); + $"Icons.{groupPath}.{field.Name}", + svg)); } } @@ -126,5 +128,10 @@ public sealed class MappingRegistryGenerator : IIncrementalGenerator return Microsoft.CodeAnalysis.CSharp.SymbolDisplay.FormatLiteral(value, quote: true); } - private sealed record IconDefinition(string QualifiedName, string Svg); + private sealed class IconDefinition(string qualifiedName, string svg) + { + public string QualifiedName { get; } = qualifiedName; + + public string Svg { get; } = svg; + } } \ No newline at end of file diff --git a/app/SourceGeneratedMappings/SourceGeneratedMappings.csproj b/app/SourceGeneratedMappings/SourceGeneratedMappings.csproj index cb416dc2..9bc8e18a 100644 --- a/app/SourceGeneratedMappings/SourceGeneratedMappings.csproj +++ b/app/SourceGeneratedMappings/SourceGeneratedMappings.csproj @@ -1,7 +1,7 @@ - net9.0 + netstandard2.0 false enable latest