Reputation: 13
It is possible to exclude folders from my publish process when deploying my ASP.NET Core application?
Specifically, the bootstrap/js
files. These files very rarely change but have made my publish process take forever. I'd like to just be able to exclude them until I know that they have changed.
Upvotes: 1
Views: 2339
Reputation: 22419
To exclude specific files from deployment
, you could follow below steps:
In the Solution Explorer window, right-click the file, and then click Properties
.See the screenshot below:
In the Properties window, in the Build Action row, select None
See the screenshot below:
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.
Upvotes: 2
Reputation: 157
in Visual Studio select the files you want to exclude, right-click -> properties then the properties window will be opened, in the Build Action choose None.
Upvotes: 0