mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 为ContextAwareGenerator添加详细的XML文档注释 - 简化接口验证逻辑,合并条件判断语句 - 修正特性数据参数命名,统一使用attr命名 - 为接口实现方法添加global::前缀以确保类型解析正确 - 移除未使用的回退方法体,简化方法实现逻辑 - 新增GeneratorSnapshotTest通用快照测试类 - 添加ContextAwareGeneratorSnapshotTests快照测试 - 移除原有的硬编码期望值测试方法 - 修正接口实现中的全局命名空间前缀格式
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
|
|
</PropertyGroup>
|
|
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.14.0"/>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0"/>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0"/>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0"/>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing" Version="1.1.2"/>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
|
|
<PackageReference Include="NUnit" Version="4.4.0"/>
|
|
<PackageReference Include="NUnit3TestAdapter" Version="6.0.1"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\GFramework.SourceGenerators\GFramework.SourceGenerators.csproj"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="rule\snapshots\ContextAwareGenerator\"/>
|
|
</ItemGroup>
|
|
|
|
</Project>
|