fix(build): 修正项目引用和打包配置

- 修复了对 GFramework.Godot.SourceGenerators.Abstractions 的项目引用路径
- 更新了打包时包含的 targets 文件名称为 GFramework.Godot.SourceGenerators.targets
- 确保编译期引用正确且不被打包到最终输出中
This commit is contained in:
GwWuYou 2025-12-27 22:30:06 +08:00
parent 3074f8420d
commit 7cd3979c48

View File

@ -27,7 +27,7 @@
<!-- Generator 编译期引用 Attributes / Common但不打包 -->
<ItemGroup>
<ProjectReference Include="..\GFramework.SourceGenerators.Abstractions\GFramework.SourceGenerators.Abstractions.csproj" PrivateAssets="all"/>
<ProjectReference Include="..\GFramework.Godot.SourceGenerators.Abstractions\GFramework.SourceGenerators.Abstractions.csproj" PrivateAssets="all"/>
<ProjectReference Include="..\GFramework.SourceGenerators.Common\GFramework.SourceGenerators.Common.csproj" PrivateAssets="all"/>
</ItemGroup>
@ -56,6 +56,6 @@
<None Include="GFramework.SourceGenerators.Common.dll" Pack="true" PackagePath="lib\netstandard2.0" Visible="true"/>
<None Include="GFramework.SourceGenerators.Common.xml" Pack="true" PackagePath="lib\netstandard2.0" Visible="true"/>
<!-- 包含targets文件 -->
<None Include="GFramework.SourceGenerators.targets" Pack="true" PackagePath="build" Visible="false"/>
<None Include="GFramework.Godot.SourceGenerators.targets" Pack="true" PackagePath="build" Visible="false"/>
</ItemGroup>
</Project>