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

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

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

        <legend id='zZMjS'><style id='zZMjS'><dir id='zZMjS'><q id='zZMjS'></q></dir></style></legend>

        VS2017 构建错误 - 命令 nuget restore 退出,代码为 9009

        VS2017 Build error - The command nuget restore exited with code 9009(VS2017 构建错误 - 命令 nuget restore 退出,代码为 9009)
        <legend id='bUZb3'><style id='bUZb3'><dir id='bUZb3'><q id='bUZb3'></q></dir></style></legend>
              <tfoot id='bUZb3'></tfoot>
              • <bdo id='bUZb3'></bdo><ul id='bUZb3'></ul>

              • <small id='bUZb3'></small><noframes id='bUZb3'>

                  <i id='bUZb3'><tr id='bUZb3'><dt id='bUZb3'><q id='bUZb3'><span id='bUZb3'><b id='bUZb3'><form id='bUZb3'><ins id='bUZb3'></ins><ul id='bUZb3'></ul><sub id='bUZb3'></sub></form><legend id='bUZb3'></legend><bdo id='bUZb3'><pre id='bUZb3'><center id='bUZb3'></center></pre></bdo></b><th id='bUZb3'></th></span></q></dt></tr></i><div id='bUZb3'><tfoot id='bUZb3'></tfoot><dl id='bUZb3'><fieldset id='bUZb3'></fieldset></dl></div>
                    <tbody id='bUZb3'></tbody>
                  本文介绍了VS2017 构建错误 - 命令 nuget restore 退出,代码为 9009的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  当我构建我的项目时,我看到以下错误.

                  <块引用>

                  命令nuget restore ProjectName.csproj - PackagesDirectory"....包"以 9009 退出.

                  当我点击我的 .csproj 上的编辑时,我看到下面的代码行

                  <目标名称=BeforeBuild"><执行工作目录=$(ProjDir)";command = "nuget restore $(ProjectName) -PackagesDirectory....包></执行></目标>

                  解决方案

                  首先,你应该确保你已经下载了

                  2)然后打开系统环境变量PATH,配置本地nuget.exe的路径.

                  然后,点击全部确定选项保存.

                  之后,可以打开CMD,输入nuget查看是否可以调用nuget.exe.

                  第二,关闭所有vs实例或msbuild窗口,打开你项目的xxx.csproj文件,

                  改为,使用这个:

                  <目标名称=BeforeBuild"><执行工作目录=$(ProjectDir)";command = "nuget restore $(MSBuildProjectFile) -PackagesDirectory ..packages "></执行></目标>

                  重新启动您的项目,或接近重新唤醒 MSBuild 以构建您的项目.

                  它在我这边效果很好.

                  When i am bulding my project i see the below error.

                  The command "nuget restore ProjectName.csproj - PackagesDirectory ....packages" exited with 9009.

                  When i clicked edit on my .csproj i see below lines of code

                  <Target Name="BeforeBuild">
                        <Exec WorkingDirectory ="$(ProjDir)" command = "nuget restore $(ProjectName) -PackagesDirectory
                   ....packages>
                  </Exec>
                  </Target>
                  

                  解决方案

                  First, you should make sure that you have downloaded the latest nuget.exe v5.7.0 and config it full path into System Environment PATH.

                  1) download it and copy it into a folder

                  2) then open System Environment Variable PATH and config the path of local nuget.exe into it.

                  Then, click all Ok option to save it.

                  After that, you can open CMD and type nuget to check whether it can call nuget.exe.

                  Second, close all vs instance or msbuild window, open your xxx.csproj file of your project,

                  Instead, use this:

                  <Target Name="BeforeBuild">
                      <Exec WorkingDirectory="$(ProjectDir)" command = "nuget restore $(MSBuildProjectFile) -PackagesDirectory ..packages ">
                      </Exec>
                  </Target>
                  

                  Restart your project, or close to reawaken MSBuild to build your project.

                  It works well in my side.

                  这篇关于VS2017 构建错误 - 命令 nuget restore 退出,代码为 9009的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 自定义合约序列化和集合)

                        <tbody id='4L3NT'></tbody>

                    1. <small id='4L3NT'></small><noframes id='4L3NT'>

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