我怎样才能排除一个网站一个.NET安装程序的文件夹? [英] How can I exclude a folder from a .NET installer for a website?

查看:123
本文介绍了我怎样才能排除一个网站一个.NET安装程序的文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有我们的一个网站,该网站的伟大工程的安装,我创建安装程序时排除的web.config和其他一些文件。不过,我似乎无法排除的文件夹。这可能吗?

We have an installer for a website of ours which works great, I exclude the web.config and a few other files when creating the installer. However I can't seem to exclude a folder. Is this possible?

我创建使用内置在新建项目对话框中在Visual Studio组其他项目类型>安装和部署创建Web安装项目的.NET安装程序。这仅具有包括输出的基团,并通过过滤排除文件的选项。

I've created the installer using the .NET built in Web Setup Project found in the visual studio group Other project types > Setup and Deployment within the new project dialog. This only has the option of including groups of output and excluding files via the filter.

推荐答案

我发现排除在子目录中,整个文件夹和任何文件的唯一方法是修改其送入我的安装部署项目。检查出的信息删除的文件夹pre-构建以下内容:

The only way I found to exclude entire folders and any files within sub-directories was to modify the deployment project which fed into my Installer. Check out the following for information removing folders pre-build:

http://www.meadow.se/word$p$pss / p = 137

这对生成后:

<一个href=\"http://blogs.msdn.com/webdevtools/archive/2008/10/05/exclude-files-and-folders-from-wdp-output.aspx\" rel=\"nofollow\">http://blogs.msdn.com/webdevtools/archive/2008/10/05/exclude-files-and-folders-from-wdp-output.aspx

这篇关于我怎样才能排除一个网站一个.NET安装程序的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆