Exclude folders while building in web deployment projects
Usually when you are building an application in visual studio using WDP you need it quickly to be done.
In this article i will show you how you can perform this in a very simple list of steps:
1 – Add your WDP (web deployment project).
2 – Right click on it and click on Open Project File.
3 – in the wdproj file you will see a tag called “<ItemGroup>”.
4 – Inside this tag add the following line:
<ExcludeFromBuild Include=”$(SourceWebPhysicalPath)\FolderName\**\*.*” />.
5 – Save and close your wdproj file and that’s it.
Note: you can add as many folders to exclude as you want.
Categories: .NET
exclude, ExcludeFromBuild, ItemGroup, SourceWebPhysicalPath, WDP, web deployment projects
Comments (0)
Trackbacks (0)
Leave a comment
Trackback