美文网首页
nuget 打包 发布 删除

nuget 打包 发布 删除

作者: 小鹏166 | 来源:发表于2021-07-29 15:00 被阅读0次

删除命令

nuget delete SEPCSRedisCore 3.3.6.2 -Source https://api.nuget.org/v3/index.json -ApiKey oy2bnacpg4lagz75254atbsv4fccbt5epomd2mxtef7ime

ApiKey  在 登录nuget .org    用户中心 配置 API keys,要勾选  Unlist package

nuget pack 发布命令  SEPCSRedisCore.nuspec (xml 文档描述)

1.通过命令 nuget setapikey  xxxxx-xxxx-xxx-xxxx-xxxx-xxxx , 设置API Key;

2.通过命令 nuget  spec 生成xxxx.nuspec文件;

3.通过命令 nuget  pack  xxxxxx.csproj 生成xxxx.nupkg文件;

3.通过命令 nuget  pack  SEPCSRedisCore.nuspec 生成xxxx.nupkg文件;

4.通过命令 nuget.exe push xxxxx.nupkg -Source https://www.nuget.org ,将NuGet发布到服务器。

5 可以通过登录nuget.org 上传

<?xml version="1.0"?>

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">

<metadata>

<!-- 包的id,在托管库内必须唯一 -->

<id>SEPRedisCore</id>

<!-- 解析依赖项时使用的包版本号 -->

<version>3.6.6.2</version>

<!-- 在库中显示的作者 -->

<authors>kason</authors>

<!-- 库的拥有者,便于用户能够轻松的获取到该拥有者发布的其他的包  -->

<owners>kason</owners>

<!-- 项目的许可和地址(比如将源代码发布到Github上时可以在此填写许可和) -->

<licenseUrl>http://opensource.org/licenses/MS-PL</licenseUrl>

<projectUrl>https://gitee.com/guangzhou_cyclone_network_906202066/redis-code.git</projectUrl>

<!-- 在Visual Studio中的可视化包管理器中展示的图标 -->

<!--<iconUrl>http://xxxxxxxxxx.png</iconUrl>-->

<!-- 在用户安装包的时候是否提示接受许可信息 -->

<requireLicenseAcceptance>false</requireLicenseAcceptance>

<!-- 发布记录 -->

<releaseNotes>Bug fixes and performance improvements</releaseNotes>

<!-- 包的描述信息 -->

<description>SEPCSRedisCore</description>

<!-- 版权 -->

<copyright>Copyright ©2020 SEP</copyright>

<!-- 标签,用户可通过标签进行搜索 -->

<tags></tags>

<!-- 包的依赖关系,在安装包的时候会自动安装所有依赖 -->

<dependencies>

<dependency id="Newtonsoft.Json" version="12.0.3" />

<dependency id="System.ValueTuple" version="4.5.0" />

</dependencies>

</metadata>

<!-- 当包安装完成的时候会自动展示readme.txt(包不能是依赖项目) -->

<files>

<file src="readme.txt" target="" />

<file src="bin\Debug\net45\*.dll" target="lib\net45" />

<file src="bin\Debug\net40\*.dll" target="lib\net40" />

<file src="bin\Debug\netstandard2.0\*.dll" target="lib\netstandard2.0" />

</files>

</package>

相关文章

网友评论

      本文标题:nuget 打包 发布 删除

      本文链接:https://www.haomeiwen.com/subject/jkaxvltx.html