Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用一个项目结构,它有一个env 文件夹,下面有不同的文件夹用于不同的环境。例如,在具有 log4net 配置的 Web 项目下,将存在以下路径:
{项目根目录}\env\dev\log4net.config {项目根目录}\env\qa\log4net.config
我知道 Web 配置转换是一个选项,但是有没有办法使用 Visual Studio 配置管理器根据指定的配置将这些文件拉入 {project root} ?
我认为这就是你要找的:
http://msdn.microsoft.com/en-us/library/ms224437.aspx