Create .NET Standard packages with Visual Studio 2015
nuge.exe 放在项目目录中
nuget spec nuget pack ********.nuspec nuget setApiKey SuperCody -Source http://*******/nuget nuget push ******.1.0.1.nupkg -Source http://******/nuget
nuspec修改示例:
<?xml version="1.0"?>
<package >
<metadata>
<id>******.</id>
<version>1.0.1</version>
<title>******</title>
<authors>******</authors>
<owners>******</owners>
<licenseUrl>******</licenseUrl>
<projectUrl>******</projectUrl>
<iconUrl>******</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>interface and Model</description>
<releaseNotes>Provide support forinterface and Model</releaseNotes>
<copyright>Copyright (C) ,2018</copyright>
<tags>Interface Model</tags>
<dependencies>
<group targetFramework=".NETStandard2.0">
<dependency id="System.ComponentModel" version="4.3.0" exclude="Build,Analyzers" />
<dependency id="System.ComponentModel.Annotations" version="4.4.1" exclude="Build,Analyzers" />
<dependency id="WestWin.Util.Repository.Base" version="2.0.0" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="binRelease
etstandard2.0******.deps.json" target="lib
etstandard2.0*******.deps.json" />
<file src="binRelease
etstandard2.0******.dll" target="lib
etstandard2.0******.dll" />
<file src="binRelease
etstandard2.0******.pdb" target="lib
etstandard2.0******.pdb" />
<file src="binRelease
etstandard2.0******.dll" target="lib
etstandard2.0******.dll" />
<file src="binRelease
etstandard2.0******.pdb" target="lib
etstandard2.0******.pdb" />
</files>
</package>