<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 项目的发布目录中排除文件

        时间:2023-05-22

        <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 项目的发布目录中排除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Visual Studio 2017 意外字符' 下一篇:“无法创建 C# 2017 编译器"打开项目时出现错误消息

                  相关文章

                  <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>
                    <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>