Home > database >  Exclude folders when publishing
Exclude folders when publishing

Time:01-06

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:

To enter image description here

  • In the Properties window, in the Build Action row, select None

See the screenshot below:

enter image description here

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.

  •  Tags:  
  • Related