chore(build): 更新源代码生成器路径引用

- 调整了项目文件中源代码生成器的相对路径
- 修正了生成器DLL文件的引用位置
- 确保打包时能正确包含分析器组件
This commit is contained in:
GwWuYou 2025-12-10 10:54:13 +08:00
parent 6046eee7fa
commit 3678e5c4a1

View File

@ -52,13 +52,13 @@
<!-- 打包 Source Generator 到 nupkg 的 analyzers/ --> <!-- 打包 Source Generator 到 nupkg 的 analyzers/ -->
<Target Name="BuildGeneratorAndPackAnalyzers" BeforeTargets="Pack"> <Target Name="BuildGeneratorAndPackAnalyzers" BeforeTargets="Pack">
<!-- 1. 构建 Source Generator 项目 --> <!-- 1. 构建 Source Generator 项目 -->
<MSBuild Projects="..\GFramework.Generator\GFramework.Generator.csproj" <MSBuild Projects="GFramework.Generator\GFramework.Generator.csproj"
Targets="Build" Targets="Build"
Properties="Configuration=$(Configuration)" /> Properties="Configuration=$(Configuration)" />
<!-- 2. 找到 Generator DLL --> <!-- 2. 找到 Generator DLL -->
<ItemGroup> <ItemGroup>
<_GeneratorDll Include="..\GFramework.Generator\bin\$(Configuration)\netstandard2.0\GFramework.Generator.dll" /> <_GeneratorDll Include="GFramework.Generator\bin\$(Configuration)\netstandard2.0\GFramework.Generator.dll" />
</ItemGroup> </ItemGroup>
<!-- 3. 复制到 obj/.../analyzers/netstandard2.0 --> <!-- 3. 复制到 obj/.../analyzers/netstandard2.0 -->