mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 删除了用于构建和打包 Source Generator 的 MSBuild 目标 - 简化了项目引用结构 - 移除了与 analyzers 文件夹相关的复制逻辑 - 清理了不必要的项目配置代码 - 优化了 NuGet 包生成流程 - 提高了构建脚本的可维护性
51 lines
2.3 KiB
XML
51 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<PackageId>GeWuYou.GFramework</PackageId>
|
|
<Authors>gewuyou</Authors>
|
|
<Product>GeWuYou.GFramework</Product>
|
|
<Description>404 not found</Description>
|
|
<Copyright>Copyright © 2025</Copyright>
|
|
<RepositoryUrl>https://github.com/GeWuYou/GFramework</RepositoryUrl>
|
|
<PackageProjectUrl>https://github.com/GeWuYou/GFramework</PackageProjectUrl>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageTags>game;framework</PackageTags>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
<IncludeSymbols>true</IncludeSymbols>
|
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
|
<RootNamespace>GFramework</RootNamespace>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
|
|
<IncludeBuildOutput>false</IncludeBuildOutput>
|
|
</PropertyGroup>
|
|
|
|
<!-- 排除不需要参与打包/编译的目录 -->
|
|
<ItemGroup>
|
|
<None Include="README.md" Pack="true" PackagePath="" />
|
|
<None Remove="GFramework.Generator\**" />
|
|
<None Remove="GFramework.Generator.Attributes\**" />
|
|
<None Remove="GFramework.Core\**" />
|
|
|
|
<Compile Remove="GFramework.Generator\**" />
|
|
<Compile Remove="GFramework.Generator.Attributes\**" />
|
|
<Compile Remove="GFramework.Core\**" />
|
|
|
|
<EmbeddedResource Remove="GFramework.Generator\**" />
|
|
<EmbeddedResource Remove="GFramework.Generator.Attributes\**" />
|
|
<EmbeddedResource Remove="GFramework.Core\**" />
|
|
</ItemGroup>
|
|
|
|
<!-- 作为 Analyzer 引入本地 SourceGenerator -->
|
|
<ItemGroup>
|
|
<ProjectReference Include="GFramework.Generator\GFramework.Generator.csproj"
|
|
OutputItemType="Analyzer"
|
|
ReferenceOutputAssembly="false" />
|
|
<ProjectReference Include="GFramework.Generator.Attributes\GFramework.Generator.Attributes.csproj"/>
|
|
<ProjectReference Include="GFramework.Core\GFramework.Core.csproj"/>
|
|
</ItemGroup>
|
|
</Project>
|