5

I can't find a way to exclude folders for a Web Application Project online: 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 publish for a Website online: Exclude files from web site publish in Visual Studio

And I can find ONE way to exclude folders from publish for a Website online: http://forums.asp.net/t/1179077.aspx?Exclude+Folder+from+Website+in+Visual+Studio

The last solution says you can rename your folder by appending an underscore and Publish will ignore.

But I cannot rename my folder because there are web links that rely on that folder and system code that relies on that folder name.

Is there any other way to exclude a folder from Publish for a Website, NOT a Web Application project?

**Note I have a .tfignore file but Publish does not read that.

Community
  • 1
  • 1
Brian Ogden
  • 18,439
  • 10
  • 97
  • 176
  • I have found the solution for this, see my answer here: http://stackoverflow.com/questions/650875/exclude-files-from-web-site-publish-in-visual-studio/29688263#29688263 – Brian Ogden Jun 30 '15 at 21:09

1 Answers1

0

have you tried editing the project file e.g. .csproj and adding following line for ever file og folder that is to be excluded from publishing process.

Mohammad S.
  • 429
  • 1
  • 6
  • 26
  • 1
    A comment or question does not belong as an answer, also I cannot understand what you are asking, your English is unclear – Brian Ogden Jan 25 '18 at 00:49