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.
CodePudding user response:
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.
CodePudding user response:
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 commandon yourproject csprojfile. You can have a look on official guideline for further details.


