Quickstart: Create and publish a NuGet package using Visual Studio (.NET Standard, Windows only)
Quickstart: Create and publish a NuGet package using Visual Studio (.NET Standard, Windows only)
Run the pack command
-
Set the configuration to Release.
-
Right click the project in Solution Explorer and select the Pack command:
If you don't see the Pack command, your project is probably not an SDK-style project and you need to use the
nuget.exe
CLI. Either migrate the project and usedotnet
CLI, or see Create and publish a .NET Framework package instead for step-by-step instructions. -
Visual Studio builds the project and creates the
.nupkg
file. Examine the Output window for details (similar to the following), which contains the path to the package file. Note also that the built assembly is inbin\Release\netstandard2.0
as befits the .NET Standard 2.0 target.Output
1>------ Build started: Project: AppLogger, Configuration: Release Any CPU ------
1>AppLogger -> d:\proj\AppLogger\AppLogger\bin\Release\netstandard2.0\AppLogger.dll
1>Successfully created package 'd:\proj\AppLogger\AppLogger\bin\Release\AppLogger.1.0.0.nupkg'.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
先配置nuget的ApiKey
https://www.cnblogs.com/chucklu/p/11445857.html
nuget setApiKey <your_API_key>
切换文件夹到C:\workspace\GitHub\Hearthsim\HearthDb\HearthDb\bin\Release
然后执行nuget push Chuck-HearthDb.17.4.1.51510.nupkg -Source https://api.nuget.org/v3/index.json
相关文章
- visual studio 2017 installer 安装包制作过程出现的问题---此安装程序需要.NET Framework 版本 3.5,请安装该版本,然后重新运行此安装程序,可以从Web获得.NET Framework 。要立即做此事吗?
- .NET开源Protobuf-net组件葵花手册
- visual studio 添加链接文件
- Visual Studio VS如何统计代码行数
- Eclipse & Visual Studio
- 关于SAP Spartacus --cx-color-visual-focus的疑问
- 一个实用的显示Visual Studio Code文件绝对路径的扩展应用
- Microsoft Visual Studio与Firefly 一直提示加载项目,更新源码状态问题
- Atitit ..Net Framework sdk 3.0 3.5 4.04.5 4.6 4.7 .net core版本新特性 v2 s22 1. 新特性来源于 down ms 官方网站1
- Atitit ..Net Framework sdk 3.0 3.5 4.04.5 4.6 4.7 .net core版本新特性 v2 s22 1. 新特性来源于 down ms 官方网站1
- VB.net:VB.net编程语言学习之基于VS软件连接SQL Server(利用ADO.NET操作数据库/添加新数据源/DataGridView数据表格控件)的简介、案例应用之详细攻略
- 猿创征文|Python基础——Visual Studio版本——第六章 MySQL操作
- 猿创征文|Python基础——Visual Studio版本——pytest
- 不想手敲代码?Jupyter Notebook 又一利器 Visual Python
- error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
- Visual Studio中的C++更新及WSL2
- Visual Studio 2022:新的枚举检查规则
- C语言----Visual Studio 2017中使用scanf报错的解决办法
- VB.net:VB.net编程语言学习之基于VS软件连接SQL Server(利用ADO.NET操作数据库/添加新数据源/DataGridView数据表格控件)的简介、案例应用之详细攻略
- visual studio2019团队资源管理器的使用