简体   繁体   中英

Exclude folder from Publish for a Website not a Web Application Project in Visual Studio 2012

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.

您是否尝试过编辑项目文件,例如.csproj,并为要从发布过程中排除的永久文件og文件夹添加以下行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM