mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-27 19:16:27 +00:00
Switched compiler version
This commit is contained in:
parent
48e46432a0
commit
4227d69ce3
@ -9,7 +9,9 @@ using Microsoft.CodeAnalysis.Text;
|
|||||||
namespace SourceGeneratedMappings;
|
namespace SourceGeneratedMappings;
|
||||||
|
|
||||||
[Generator]
|
[Generator]
|
||||||
|
#pragma warning disable RS1036
|
||||||
public sealed class MappingRegistryGenerator : IIncrementalGenerator
|
public sealed class MappingRegistryGenerator : IIncrementalGenerator
|
||||||
|
#pragma warning restore RS1036
|
||||||
{
|
{
|
||||||
private const string GENERATED_NAMESPACE = "AIStudio.Tools.PluginSystem.Assistants.Icons";
|
private const string GENERATED_NAMESPACE = "AIStudio.Tools.PluginSystem.Assistants.Icons";
|
||||||
private const string ROOT_TYPE_NAME = "MudBlazor.Icons";
|
private const string ROOT_TYPE_NAME = "MudBlazor.Icons";
|
||||||
@ -80,8 +82,8 @@ public sealed class MappingRegistryGenerator : IIncrementalGenerator
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
icons.Add(new IconDefinition(
|
icons.Add(new IconDefinition(
|
||||||
QualifiedName: $"Icons.{groupPath}.{field.Name}",
|
$"Icons.{groupPath}.{field.Name}",
|
||||||
Svg: svg));
|
svg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,5 +128,10 @@ public sealed class MappingRegistryGenerator : IIncrementalGenerator
|
|||||||
return Microsoft.CodeAnalysis.CSharp.SymbolDisplay.FormatLiteral(value, quote: true);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user