• Nuget 打包 for .Net Standart project


    Create .NET Standard packages with Visual Studio 2015

    Publishing packages

    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>

      

  • 相关阅读:
    BZOJ 1191 HNOI2006 超级英雄hero
    BZOJ 2442 Usaco2011 Open 修建草坪
    BZOJ 1812 IOI 2005 riv
    OJ 1159 holiday
    BZOJ 1491 NOI 2007 社交网络
    NOIP2014 D1 T3
    BZOJ 2423 HAOI 2010 最长公共子序列
    LCA模板
    NOIP 2015 D1T2信息传递
    数据结构
  • 原文地址:https://www.cnblogs.com/panpanwelcome/p/8488796.html
Copyright © 2020-2023  润新知