1. <small id='iL7qQ'></small><noframes id='iL7qQ'>

    • <bdo id='iL7qQ'></bdo><ul id='iL7qQ'></ul>

      <legend id='iL7qQ'><style id='iL7qQ'><dir id='iL7qQ'><q id='iL7qQ'></q></dir></style></legend>
      <i id='iL7qQ'><tr id='iL7qQ'><dt id='iL7qQ'><q id='iL7qQ'><span id='iL7qQ'><b id='iL7qQ'><form id='iL7qQ'><ins id='iL7qQ'></ins><ul id='iL7qQ'></ul><sub id='iL7qQ'></sub></form><legend id='iL7qQ'></legend><bdo id='iL7qQ'><pre id='iL7qQ'><center id='iL7qQ'></center></pre></bdo></b><th id='iL7qQ'></th></span></q></dt></tr></i><div id='iL7qQ'><tfoot id='iL7qQ'></tfoot><dl id='iL7qQ'><fieldset id='iL7qQ'></fieldset></dl></div>

      <tfoot id='iL7qQ'></tfoot>
    1. Nuget Pack 命令,在 Visual Studio 2017 中

      Nuget Pack command, in Visual Studio 2017(Nuget Pack 命令,在 Visual Studio 2017 中)

      <tfoot id='HmWef'></tfoot>
    2. <small id='HmWef'></small><noframes id='HmWef'>

        <legend id='HmWef'><style id='HmWef'><dir id='HmWef'><q id='HmWef'></q></dir></style></legend>
        <i id='HmWef'><tr id='HmWef'><dt id='HmWef'><q id='HmWef'><span id='HmWef'><b id='HmWef'><form id='HmWef'><ins id='HmWef'></ins><ul id='HmWef'></ul><sub id='HmWef'></sub></form><legend id='HmWef'></legend><bdo id='HmWef'><pre id='HmWef'><center id='HmWef'></center></pre></bdo></b><th id='HmWef'></th></span></q></dt></tr></i><div id='HmWef'><tfoot id='HmWef'></tfoot><dl id='HmWef'><fieldset id='HmWef'></fieldset></dl></div>
          <tbody id='HmWef'></tbody>

                <bdo id='HmWef'></bdo><ul id='HmWef'></ul>
                本文介绍了Nuget Pack 命令,在 Visual Studio 2017 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我有一个 .core 解决方案,其中需要包含一些项目,据我了解,实践是在 .core 中使用 Nuget.对于我在 Properties->Package 下的那些项目,选中了Generate package on build".问题是 nuget-package 放在 inDebug... 有没有办法定义一个覆盖属性,以便它可以放在其他地方?

                I have a .core solution where some projects need to be included and as I understand the praxis is in .core to use Nuget. For those projects I have under Properties->Package checked "Generate package on build". The problem is that nuget-package is put under inDebug... Is there a way to define an overrideing property so it can be put some else where?

                我已尝试放入 nuget.config:

                I have tried to put in nuget.config:

                <configuration>
                  <config>
                    <add key="repositorypath" value="some path" />
                  </config>
                </configuration>
                

                没有运气.我也尝试过 .csproj:

                with no luck. I have also tried to pu in .csproj:

                    <PropertyGroup>
                       <TargetFramework>netcoreapp1.1</TargetFramework>
                       <PreBuildEvent></PreBuildEvent>
                       <PostBuildEvent></PostBuildEvent>
                       <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
                       <PackageOutputDir> some path </PackageOutputDir>
                    </PropertyGroup>
                

                我曾尝试使用 OnPostBuild 将文件从其位置复制到另一个位置,但似乎在 postbuild 后触发了打包命令……另一个问题是宏中使用的参数不是由系统设置的,它们在运行时只是空字符串.

                I have tried to use OnPostBuild to copy files from its location to another but package command seems to be triggered after postbuild... another problem is that parameters used in macros is not set by system they are just emty strings at runtime.

                我还尝试从命令提示符运行,因为在带有 .core 和 Nuget 的 Visual Studio 2017 中感觉如此错误.从命令提示符(nuget pack)运行时,我得到非信息性信息:无法将 System.String 类型的对象转换为 NuGet.Frameworks.NuGetFramework 类型"

                I have also tried to run from command promt due to It feels so buggy in Visual Studio 2017 with .core and Nuget. When running from command promt (nuget pack) I get non informative info as: "Unable to convert an object of type System.String to type NuGet.Frameworks.NuGetFramework"

                我可以做些什么来将我的所有 nuget 包放在另一个目录中,而不是 Visual Studio 2017 使用的默认设置...我可以以某种方式覆盖此设置吗?

                What can I do to put all my nuget packages in another catalogue than default setting as Visual Studio 2017 is using... Can I override this setting somehow?

                谢谢!

                推荐答案

                您可以通过在 <PropertyGroup> 中设置来覆盖包输出目录:

                You can override the package output directory by setting this inside a <PropertyGroup>:

                <PackageOutputPath>..some-folder</PackageOutputPath>
                

                这篇关于Nuget Pack 命令,在 Visual Studio 2017 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)

                  <small id='bjUml'></small><noframes id='bjUml'>

                  1. <legend id='bjUml'><style id='bjUml'><dir id='bjUml'><q id='bjUml'></q></dir></style></legend>

                      <bdo id='bjUml'></bdo><ul id='bjUml'></ul>
                      <i id='bjUml'><tr id='bjUml'><dt id='bjUml'><q id='bjUml'><span id='bjUml'><b id='bjUml'><form id='bjUml'><ins id='bjUml'></ins><ul id='bjUml'></ul><sub id='bjUml'></sub></form><legend id='bjUml'></legend><bdo id='bjUml'><pre id='bjUml'><center id='bjUml'></center></pre></bdo></b><th id='bjUml'></th></span></q></dt></tr></i><div id='bjUml'><tfoot id='bjUml'></tfoot><dl id='bjUml'><fieldset id='bjUml'></fieldset></dl></div>
                        <tbody id='bjUml'></tbody>
                    • <tfoot id='bjUml'></tfoot>