Directory.Build.props 589 B

1234567891011121314151617
  1. <Project>
  2. <!-- 源生成器项目:继承版本号和 NuGet 元数据,但不继承多目标框架 -->
  3. <!-- 设置版本目录路径(在导入前设置) -->
  4. <PropertyGroup>
  5. <VersionsDir>$([System.IO.Path]::Combine($(MSBuildThisFileDirectory), '..', 'versions'))</VersionsDir>
  6. </PropertyGroup>
  7. <!-- 导入共享的版本检测逻辑 -->
  8. <Import Project="../buildTools/Version.props" />
  9. <!-- 源生成器特定的 NuGet 包标签 -->
  10. <PropertyGroup>
  11. <PackageTags>configuration;source-generator;roslyn;aot;codegen</PackageTags>
  12. </PropertyGroup>
  13. </Project>