I cannot find a way to exclude folders for a web application project on the Internet: http://www.asp.net/web-forms/overview/deployment/advanced-enterprise-web-deployment/excluding-files-and-folders-from -deployment
I can also find a way to exclude files from publishing for a website on the Internet: Exclude files from a website in Visual Studio
And I can find ONE way to exclude folders from publishing for a website on the Internet: http://forums.asp.net/t/1179077.aspx?Exclude+Folder+from+Website+in+Visual+Studio
The final solution says that you can rename your folder by adding an underscore, and the publication will ignore it.
But I canโt rename my folder because there are web links that rely on this folder and system code that relies on this folder name.
Is there any other way to exclude a folder from a publication for a website, rather than a web application project?
** Note. I have a .tfignore file but Publish does not read it.
You tried to edit the project file, for example..csproj and adding the following line for any og file folder that should be excluded from the publishing process.