zoukankan      html  css  js  c++  java
  • Nuget的使用笔记-(使用nuget发布dll到www.nuget.org)

    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

      

  • 相关阅读:
    .net知识和学习方法系列(二十)CLR委托
    Asp.net用户管理API的应用(上)
    .net知识和学习方法系列(十七)CLRCLR中的值类型和引用类型
    .net知识和学习方法系列(十九)CLR事件
    Internet Explorer 8 Beta2 常见问题解答
    关于设计模式
    Extjs中ComboBox加载并赋初值
    WPF获取窗体元素
    Extjs使用extend(js继承)
    Extjs解决上传图片预览
  • 原文地址:https://www.cnblogs.com/oceanho/p/4527634.html
Copyright © 2011-2022 走看看