Nuget是神马东东?

来自nuget.org官方的介绍

-------------------------------------------------------------------------------------

What is NuGet?

NuGet is the package manager for the Microsoft development platform including .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers.

今天的笔记是:

把自己写好的nuget包发布到。nuget.org上。

第一步:

  在注册一个nuget.org账号,并且登录nuget.org。当然,你也可以用MS账号授权登录。(如果已经有账号跳过这一步。https://www.nuget.org/packages/upload )

  

登录nuget后,获取apikey,这个就是后面发布包到nuget的授权密钥(你可以这样理解),直接访问 https://www.nuget.org/account ,在下面的

Credentials    API Key

第二步:

  首先安装 NuGet Package Explorer

下载地址:(http://nuget.codeplex.com/releases/59864/clickOnce/NuGetPackageExplorer.application ),安装就可以了。安装完成后,在桌面上会有一个这样的图标

  

第三步:

  准备dll文件的nuget上传包。

  打开Nuget Package Explorer,选择 Create a new package(Ctrl+N)

  

  打开 nuget package explorer 后,看到如下界面。

  

  Package metadata      Package contents

-------------------------------------------------------

  Id:识别码

  Version:版本号

  Dependencies:包依赖

  其它Key就省略......

  在左边 Package metadata 编辑好包配置后,将 dll 文件,拖拽到Package contents 中、

  

第四步:

  发布包到nuget.org

  选择 File - > Publish

  Publish Url : https://www.nuget.org

  Publish key: 第一步你获取到的api key 、

  

  

  发布成功后,在nuget.org,在 https://www.nuget.org/account/Packages 就能看到啦~,当然,前提是必须登录了 nuget.org

  

Nuget的使用笔记-(使用nuget发布dll到www.nuget.org)的更多相关文章

  1. nuget服务器搭建,以及如何发布一个Nuget包

    本文章主要介绍如何将本地dll打包成为一个Nuget包,并如何发布到自己的nuget服务器.章节如下 1. 本地dll如何打包,以及版本的更新 2. 在linux上搭建nuget.server 3. ...

  2. 使用NuGet发布自己的.NET NuGet 包( .NET Standard & Windows)

    发布自己的nuget包 STEP 1:获取API Key 首先,你需要到NuGet上注册一个新的账号,然后在My Account页面,获取一个API Key,或者是自建服务器上生成一个API Key( ...

  3. 搭建基于.NetFrameWork的私有nuget服务端及打包项目发布上传

    一.私有Nuget服务端搭建 1.创建一个.NetFramework web项目 2.在nuget管理中 安装 nuget.server包 3.安装完成后修改web.config里面的 apikey ...

  4. 如何最快速地将旧的 NuGet 包 (2.x, packages.config) 升级成新的 NuGet 包 (4.x, PackageReference)

    最近我将项目格式进行了升级,从旧的 csproj 升级成了新的 csproj:NuGet 包管理的方式也从 packages.config 升级成了 PackageReference.然而迁移完才发现 ...

  5. 在VS中自动生成NuGet包以及搭建自己的或单位内部的NuGet服务器

    关于NuGet的介绍已经很多,可以参考下面的: NuGet学习笔记(1)--初识NuGet及快速安装使用 http://kb.cnblogs.com/page/143190/ NuGet学习笔记(2) ...

  6. Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T

    错误提示: Severity Code Description Project File Line Suppression StateError This project references NuG ...

  7. NuGet Packages are missing,This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.

    错误内容 This project references NuGet package(s) that are missing on this computer. Use NuGet Package R ...

  8. This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567.

    记事本打开csproj文件 搜索nuget 删除Target节点 类似如下: <Target Name="EnsureBclBuildImported" BeforeTarg ...

  9. 发布你自己的Nuget包

    ①安装NuGetPackageExplorer 来帮助我们发布你的包. ②https://www.nuget.org/ 创建你的apikey ③新建一个asp.net的空项目,并且安装nuget.se ...

随机推荐

  1. 【JavaScript 封装库】BETA 5.0 测试版发布!

    JavaScript 前端框架(封装库) BETA 5.0 已于10月10日正式发布,今天开始提供 BETA 5.0 的 API 参考文献.相较于之前 5 个版本的发布都是草草的提供源代码,并没有很多 ...

  2. mm_struct简要解析

    http://blog.chinaunix.net/uid-20729583-id-1884615.html struct mm_struct {    /*        指向线性区对象的链表头   ...

  3. 将base64编码转换图片

    /// <summary> /// 二进制Base64编码转图片 /// </summary> /// <param name="bytes"> ...

  4. td过长,将固定宽度table撑开

    解决办法: 在table上加上样式: table{table-layout:fixed;word-break:break-all} table-layout:fixed   tablle的列宽由表格宽 ...

  5. UVA_10820_send a table

    When participating in programming contests, you sometimes face the following problem: You know how t ...

  6. 面向对象封装的web服务器

    import socket import re import os import sys # 由于前面太繁琐,可以用类封装一下,也可以分几个模块 class HttpServer(object): d ...

  7. (二)、Python 基础

    Python入门 一.第一句Python 在 /home/dev/ 目录下创建 hello.py 文件,内容如下: print "hello,world" 执行 hello.py ...

  8. LeetCode969. 煎饼排序

    问题:969. 煎饼排序 给定数组 A,我们可以对其进行煎饼翻转:我们选择一些正整数 k <= A.length,然后反转 A 的前 k 个元素的顺序.我们要执行零次或多次煎饼翻转(按顺序一次接 ...

  9. ethereum(以太坊)(十三)--异常处理/元祖

    pragma solidity ^0.4.4; contract Students{ uint[] data= new uint[](4); address _owner = msg.sender; ...

  10. redis安装与简单使用

    第一步 新建一个文件 第二步 利用winscrp软件从本机上传redis的压缩包到linux新建的rdtar目录 第三步   cd rdtar 第四步   解压  tar zxvf redis-2+t ...