mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-27 14:36:27 +00:00
Fixed source generator
This commit is contained in:
parent
3cef689c83
commit
4b798003b0
@ -60,21 +60,9 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SharedTools\SharedTools.csproj" />
|
||||
<ProjectReference Include="..\SourceCodeRules\SourceCodeRules\SourceCodeRules.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
|
||||
<ProjectReference Include="..\SourceGeneratedMappings\SourceGeneratedMappings.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<SourceGeneratedMappingsProject>..\SourceGeneratedMappings\SourceGeneratedMappings.csproj</SourceGeneratedMappingsProject>
|
||||
<SourceGeneratedMappingsAssembly>..\SourceGeneratedMappings\bin\$(Configuration)\net9.0\SourceGeneratedMappings.dll</SourceGeneratedMappingsAssembly>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="BuildSourceGeneratedMappings" BeforeTargets="CoreCompile">
|
||||
<MSBuild Projects="$(SourceGeneratedMappingsProject)" Targets="Restore;Build" Properties="Configuration=$(Configuration);RestoreIgnoreFailedSources=true" />
|
||||
|
||||
<ItemGroup>
|
||||
<Analyzer Include="$(SourceGeneratedMappingsAssembly)" Condition="Exists('$(SourceGeneratedMappingsAssembly)')" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Plugins\assistants\assets\" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -235,6 +235,6 @@
|
||||
"type": "Project"
|
||||
}
|
||||
},
|
||||
"net9.0/win-x64": {}
|
||||
"net9.0/osx-arm64": {}
|
||||
}
|
||||
}
|
||||
8
app/SourceGeneratedMappings/AnalyzerReleases.Shipped.md
Normal file
8
app/SourceGeneratedMappings/AnalyzerReleases.Shipped.md
Normal file
@ -0,0 +1,8 @@
|
||||
## Release 1.0
|
||||
|
||||
### New Rules
|
||||
|
||||
| Rule ID | Category | Severity | Notes |
|
||||
|---------|------------------|----------|--------------------------|
|
||||
| MBI001 | SourceGeneration | Info | MappingRegistryGenerator |
|
||||
| MBI002 | SourceGeneration | Warning | MappingRegistryGenerator |
|
||||
@ -0,0 +1,4 @@
|
||||
; Unshipped analyzer release
|
||||
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
|
||||
|
||||
### New Rules
|
||||
@ -26,7 +26,7 @@ public sealed class MappingRegistryGenerator : IIncrementalGenerator
|
||||
private static readonly DiagnosticDescriptor NO_ICONS_FOUND = new(
|
||||
id: "MBI002",
|
||||
title: "No MudBlazor icons were discovered",
|
||||
messageFormat: "The generator found '{0}', but no nested icon constants were discovered below it.",
|
||||
messageFormat: "The generator found '{0}', but no nested icon constants were discovered below it",
|
||||
category: "SourceGeneration",
|
||||
DiagnosticSeverity.Warning,
|
||||
isEnabledByDefault: true);
|
||||
|
||||
@ -16,14 +16,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CodeAnalysis">
|
||||
<HintPath>$(MSBuildSDKsPath)\..\Roslyn\bincore\Microsoft.CodeAnalysis.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeAnalysis.CSharp">
|
||||
<HintPath>$(MSBuildSDKsPath)\..\Roslyn\bincore\Microsoft.CodeAnalysis.CSharp.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user