开发者

Is the ASP.NET web.config file getting out of hand?

开发者 https://www.devze.com 2022-12-25 21:30 出处:网络
Heres something I\'ve been pondering for a while ... Do you struggle with the size and the number of entries in the web.config file? Do you understand every element?

Heres something I've been pondering for a while ...

Do you struggle with the size and the number of entries in the web.config file? Do you understand every element?

Is it time for Microsoft to relook 开发者_如何学Goat how an ASP.NET site is configured, perhaps by splitting the web.config file into multiple files?


They did.

In ASP.Net 4.0, all of the standard Web.config entries for ASP.Net AJAX sites are in Machine.config, allowing new Web projects to start with an (almost) empty Web.config.

In addition, VS2010 allows you to combine multiple web.config files during a build.


Man I HATE the web.config file - it's a complete mess. As the previous answerer mentioned, this has been trimmed and tidied up in ASP.NET 4.

However, for those of us stuck with earlier tech (e.g. ASP.NET3.5, VS2008 etc.), you can still split it up into multiple files to make it more manageable by using the configSource attribute.

See this article

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号