mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-25 04:59:01 +08:00
- 在 NuGet 包中实现可选的 transitive global usings 功能 - 添加 XML 配置方式启用模块级自动命名空间导入 - 支持通过 GFrameworkExcludedUsing 排除特定命名空间 - 为所有运行时模块生成对应的 buildTransitive props 文件 - 添加 Python 脚本自动生成和验证命名空间配置 - 在文档中添加新的安装配置说明 - 创建单元测试验证生成脚本的同步状态
36 lines
1.6 KiB
XML
36 lines
1.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
||
|
||
<!--
|
||
配置项目构建属性
|
||
设置项目生成文档文件,并包含特定的Polyfill
|
||
-->
|
||
<PropertyGroup>
|
||
<PackageId>GeWuYou.$(AssemblyName)</PackageId>
|
||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||
<MeziantouPolyfill_IncludedPolyfills>T:System.Diagnostics.CodeAnalysis.NotNullWhenAttribute</MeziantouPolyfill_IncludedPolyfills>
|
||
<Nullable>enable</Nullable>
|
||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||
</PropertyGroup>
|
||
|
||
<!-- 引入必要的命名空间 -->
|
||
<ItemGroup>
|
||
<Using Include="GFramework.Core.Abstractions"/>
|
||
</ItemGroup>
|
||
<ItemGroup>
|
||
<PackageReference Update="Meziantou.Analyzer" Version="3.0.25">
|
||
<PrivateAssets>all</PrivateAssets>
|
||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||
</PackageReference>
|
||
<PackageReference Update="Meziantou.Polyfill" Version="1.0.104">
|
||
<PrivateAssets>all</PrivateAssets>
|
||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||
</PackageReference>
|
||
<PackageReference Include="Mediator.Abstractions" Version="3.0.1"/>
|
||
</ItemGroup>
|
||
<!-- <auto-generated gframework-transitive-global-usings> -->
|
||
<ItemGroup>
|
||
<None Include="buildTransitive\GeWuYou.GFramework.Core.Abstractions.props" Pack="true" PackagePath="buildTransitive" Visible="false"/>
|
||
</ItemGroup>
|
||
<!-- </auto-generated gframework-transitive-global-usings> -->
|
||
</Project>
|