发布时排除文件夹
Exclude folders when publishing
部署我的 ASP.NET 核心应用程序时,可以从我的发布过程中排除文件夹吗?
具体来说,bootstrap/js
个文件。这些文件很少更改,但让我的发布过程耗费了很长时间。我希望能够排除它们,直到我知道它们已经改变。
在Visual Studioselect中你要排除的文件,右击->属性然后属性window会被打开,在Build Action中选择None.
要exclude specific files from deployment
,您可以按照以下步骤操作:
In the Solution Explorer window, right-click the file, and then click Properties
.
见下方截图:
In the Properties window, in the Build Action row, select None
见下方截图:
Note:
Once you implement above changes your selected file will be excluded from the deployment. You can also do that using XML command
on your project csproj
file. You can have a look on
official guideline for further details.
部署我的 ASP.NET 核心应用程序时,可以从我的发布过程中排除文件夹吗?
具体来说,bootstrap/js
个文件。这些文件很少更改,但让我的发布过程耗费了很长时间。我希望能够排除它们,直到我知道它们已经改变。
在Visual Studioselect中你要排除的文件,右击->属性然后属性window会被打开,在Build Action中选择None.
要exclude specific files from deployment
,您可以按照以下步骤操作:
In the Solution Explorer window, right-click the file, and then click Properties
.
见下方截图:
In the Properties window, in the Build Action row, select None
见下方截图:
Note:
Once you implement above changes your selected file will be excluded from the deployment. You can also do that usingXML command
on yourproject csproj
file. You can have a look on official guideline for further details.