釋出nuget 如何配置專案檔案

喜爱糖葫芦發表於2024-11-20

編輯專案檔案

<PropertyGroup>
        <TargetFramework>net6.0</TargetFramework>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
        <Title>TokenBlackList</Title>
        <!--包名-->
        <PackageId>MasterNeverDown.TokenBlackList</PackageId>
        <!--版本-->
        <Version>1.0.2</Version>
        <!--作者-->
        <Authors>Hailong.WU</Authors>
        <!--公司-->
        <Company>MasterNeverDown</Company>
        <!--生成自動構建-->
        <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
        <PackageProjectUrl>...</PackageProjectUrl>
        <Description>token balck list</Description>
        <PackageReadmeFile>README.md</PackageReadmeFile>
        <PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
    </PropertyGroup>
 <ItemGroup>
        <None Include="licenses\LICENSE.txt" Pack="true" PackagePath=""/>
        <None Include="..\README.md" Pack="true" PackagePath="\"/>
        <None Remove="CommunityToolkit.ReflectionFactory\**" />
    </ItemGroup>

相關文章