雜物儲存室 Coding Blog

建立一個 .NET Core NuGet package

first in .csproj

<PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <Version>1.0.0</Version>
    <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <Company></Company>
    <Authors>David</Authors>
    <PackageProjectUrl>https://github.com/davidyujia/</PackageProjectUrl>
    <PackageIconUrl></PackageIconUrl>
    <PackageTags>generic repository</PackageTags>
    <Copyright></Copyright>
    <Description></Description>
    <PackageLicenseUrl></PackageLicenseUrl>
    <NeutralLanguage>en</NeutralLanguage>
    <RepositoryUrl>https://github.com/davidyujia/</RepositoryUrl>
    <RepositoryType>git</RepositoryType>
</PropertyGroup>

then

dotnet pack -c Release
tags: [ DotNetCore NuGet ]