XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.AutoConfig

【DLL】自动实现配置文件的存储

公开
关注 0 Fork 0 Star 0
UTF-8
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <IsAotCompatible>false</IsAotCompatible>
    <IsTrimmable>false</IsTrimmable>
    <Title>AutoConfig</Title>
    <Authors>XFEstudio</Authors>
    <Company>寰宇朽力网络科技有限公司</Company>
    <Description>自动实现配置文件的存储</Description>
    <Copyright>寰宇朽力网络科技有限公司版权所有</Copyright>
    <PackageIcon>logoIcon.png</PackageIcon>
    <PackageReadmeFile>README.md</PackageReadmeFile>
    <RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.AutoConfig</RepositoryUrl>
    <PackageProjectUrl>https://github.com/XFEstudio/XFEExtension.NetCore.AutoConfig</PackageProjectUrl>
    <PackageTags>XFE;config;profile;auto</PackageTags>
    <PackageReleaseNotes>
      ## 新增

      - 配置版本元数据、逐版本迁移、字段重命名和候选配置验证
      - 每实例 JSON 序列化选项、命名策略和 converter
      - ProfileStore&lt;TProfile&gt; 多实例/多租户存储
      - ProfileList/ProfileDictionary 所属配置自动绑定
      - .NET 10 / C# 14 部分配置属性及字段升级诊断与代码修复

      ## 调整

      - 明确 Native AOT/Trim 支持边界并标注反射序列化入口
    </PackageReleaseNotes>
    <PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
    <Version>4.1.2</Version>
    <GenerateDocumentationFile>True</GenerateDocumentationFile>
  </PropertyGroup>

  <ItemGroup>
    <None Include="..\LICENSE.txt">
      <Pack>True</Pack>
      <PackagePath>\</PackagePath>
    </None>
    <None Include="..\logoIcon.png">
      <Pack>True</Pack>
      <PackagePath>\</PackagePath>
    </None>
    <None Include="..\README.md">
      <Pack>True</Pack>
      <PackagePath>\</PackagePath>
    </None>
    <None Include="..\README.zh-CN.md">
      <Pack>True</Pack>
      <PackagePath>\</PackagePath>
    </None>
    <None Include="..\XFEExtension.NetCore.AutoConfig.Analyzer\bin\$(Configuration)\netstandard2.0\XFEExtension.NetCore.AutoConfig.Analyzer.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
    <None Include="..\XFEExtension.NetCore.AutoConfig.CodeFix\bin\$(Configuration)\netstandard2.0\XFEExtension.NetCore.AutoConfig.CodeFix.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="MessagePack" Version="3.1.8" />
    <PackageReference Include="XFEExtension.NetCore" Version="5.2.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\XFEExtension.NetCore.AutoConfig.Analyzer\XFEExtension.NetCore.AutoConfig.Analyzer.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="all" />
    <ProjectReference Include="..\XFEExtension.NetCore.AutoConfig.CodeFix\XFEExtension.NetCore.AutoConfig.CodeFix.csproj" ReferenceOutputAssembly="false" PrivateAssets="all" />
  </ItemGroup>

  <Target Name="ValidateCompilerExtensionPackageFiles" BeforeTargets="GenerateNuspec">
    <Error Condition="!Exists('..\XFEExtension.NetCore.AutoConfig.Analyzer\bin\$(Configuration)\netstandard2.0\XFEExtension.NetCore.AutoConfig.Analyzer.dll')" Text="Analyzer build output is missing." />
    <Error Condition="!Exists('..\XFEExtension.NetCore.AutoConfig.CodeFix\bin\$(Configuration)\netstandard2.0\XFEExtension.NetCore.AutoConfig.CodeFix.dll')" Text="CodeFix build output is missing." />
  </Target>

</Project>