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.
我想使用不同的部分进行调试和发布配置。尝试使用“web.config 转换”功能,但它仅适用于部署。而不是当我只想在本地构建和执行应用程序时。
我可以在 web.config 中添加一个条件来选择正确的吗?
谢谢。
如果您使用的是 Visual Studio 2010,那么您可以将它们放在不同的配置文件中。
检查http://msdn.microsoft.com/en-us/library/wx0123s5.aspx