<tfoot id='zt0lu'></tfoot>

        <bdo id='zt0lu'></bdo><ul id='zt0lu'></ul>

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

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

        从 VS 2017 .NET Core 项目的发布目录中排除文件

        Excluding File From Publish Directory in VS 2017 .NET Core Project(从 VS 2017 .NET Core 项目的发布目录中排除文件)

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

                <tbody id='KTmrg'></tbody>
            1. <tfoot id='KTmrg'></tfoot>
                • <bdo id='KTmrg'></bdo><ul id='KTmrg'></ul>

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

                • 本文介绍了从 VS 2017 .NET Core 项目的发布目录中排除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我的项目的 wwwroot 文件夹中有一个 .gitignore 文件,我试图将其排除在发布之外.以下代码似乎不起作用:

                  I have a .gitignore file in the wwwroot folder of my project that I am trying to exclude from being published. The following code does not seem to work:

                  <ItemGroup>
                    <Content Include="wwwroot.gitignore">
                      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
                    </Content>
                  </ItemGroup>
                  

                  当我使用 dotnet publish 命令发布项目时,.gitignore 文件仍然在输出目录中.

                  When I publish the project using the dotnet publish command, the .gitignore file is still found in the output directory.

                  推荐答案

                  你必须像这样使用 Update:

                  <Content Update="wwwroot.gitignore">
                    <CopyToPublishDirectory>Never</CopyToPublishDirectory>
                  </Content>
                  

                  这篇关于从 VS 2017 .NET Core 项目的发布目录中排除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 自定义合约序列化和集合)
                  <tfoot id='MmS2h'></tfoot>
                    <i id='MmS2h'><tr id='MmS2h'><dt id='MmS2h'><q id='MmS2h'><span id='MmS2h'><b id='MmS2h'><form id='MmS2h'><ins id='MmS2h'></ins><ul id='MmS2h'></ul><sub id='MmS2h'></sub></form><legend id='MmS2h'></legend><bdo id='MmS2h'><pre id='MmS2h'><center id='MmS2h'></center></pre></bdo></b><th id='MmS2h'></th></span></q></dt></tr></i><div id='MmS2h'><tfoot id='MmS2h'></tfoot><dl id='MmS2h'><fieldset id='MmS2h'></fieldset></dl></div>

                      <tbody id='MmS2h'></tbody>
                      <legend id='MmS2h'><style id='MmS2h'><dir id='MmS2h'><q id='MmS2h'></q></dir></style></legend>

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

                          <bdo id='MmS2h'></bdo><ul id='MmS2h'></ul>