有没有办法使用 Visual Studio 配置管理器从 env 文件夹中提取配置文件?

发布于 2024-11-02 12:19:25 字数 318 浏览 9 评论 0原文

我使用的项目结构有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赤濁 2024-11-09 12:19:25

我认为这就是您正在寻找的:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文