有没有办法使用 Visual Studio 配置管理器从 env 文件夹中提取配置文件?
我使用的项目结构有一个 env 文件夹,其下有针对不同环境的各种文件夹。例如,在具有 log4net 配置的 Web 项目下,将存在以下路径:
- {项目根目录}\env\dev\log4net.config
- {项目根目录}\env\qa\log4net.config
我知道 Web 配置转换是一个选项,但是有没有办法使用 Visual Studio 配置管理器来根据指定的配置将这些文件拉入{项目根目录}?
I use a project structure that has an env folder with various folders under it for different environments. For example, under a web project that has a log4net configuration, the following paths would exist:
- {project root}\env\dev\log4net.config
- {project root}\env\qa\log4net.config
I know that web config transforms are an option, but is there a way to use the Visual Studio configuration manager to pull these files into the {project root} depending on a specified configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这就是您正在寻找的:
http://msdn.microsoft.com /en-us/library/ms224437.aspx
I think this is what you are looking for:
http://msdn.microsoft.com/en-us/library/ms224437.aspx