Exclude folders from VSTS Build

Exclude folders from VSTS Build



We can exclude folder contents using VSTS automatic build, here are steps to exclude folders from build,

1. Open build definition
2. Select build solution option from left panel
3. Update MSBuild arguments

Phase 1 => Build Solution => MSBuild Arguments


Append below code of line in "MSBuild Arguments" textbox 
/p:ExcludeFoldersFromDeployment="Content\dist\css\skins;Content\dist\js"

This is exclude two folders, one from Content\dist\css\skins and another from Content\dist\js




Hope this will help you and save your time.


Enjoy !!!

:)

No comments:

Post a Comment