Visual Studio 2008 Web 安装项目问题
我在 Visual Studio 2008 中为多个环境、DEV、QA、UAT 和 PROD 创建了一个 Web 设置项目。我将文件系统的所有四个 web.config 文件设置为以下条件和目标名称:
- Condition: DEPLOYMENT_ENVIRONMENT="Development", TargetName: web.config
- Condition: DEPLOYMENT_ENVIRONMENT="QA", TargetName: web.config
- Condition: DEPLOYMENT_ENVIRONMENT="UAT", TargetName: web.config
- Condition: DEPLOYMENT_ENVIRONMENT="Production", TargetName: web.config
SourcePath 设置为所有四个 web.config 文件所在的本地计算机,并命名为 DEV.web.config、QA.web.config、UAT .web.config 和 Production.web.config。 我有一个用户界面,其中有四个单选按钮,其标签和值与我的文件名匹配,ButtonProperty 设置为 DEVELOPMENT_ENVIRONMENT,DefaultValue 设置为 Development。
在安装过程中,当我选择开发以外的环境(例如 QA 或 UAT)时,将安装除 web.config 之外的所有文件。我错过了什么或可能导致此问题的任何想法?
I have created a web setup project in Visual Studio 2008 for multiple environments, DEV, QA, UAT, and PROD. I set all four of my file system web.config files to the following conditions and targetname:
- Condition: DEPLOYMENT_ENVIRONMENT="Development", TargetName: web.config
- Condition: DEPLOYMENT_ENVIRONMENT="QA", TargetName: web.config
- Condition: DEPLOYMENT_ENVIRONMENT="UAT", TargetName: web.config
- Condition: DEPLOYMENT_ENVIRONMENT="Production", TargetName: web.config
SourcePath is set to my local machine where all four web.config files are located and named DEV.web.config, QA.web.config, UAT.web.config, and Production.web.config.
I have a user interface with four radio buttons with labels and values that match my file names, ButtonProperty is set to DEVELOPMENT_ENVIRONMENT, and DefaultValue is set to Development.
During the install when I select an environment other than development, like QA or UAT, all files are installed except the web.config. Any ideas what I missed or may be causing this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论