Difference between and

2019-02-24 11:47发布

问题:

Setting <compilation debug="true/false"> in Web.config seems to do things that you can also set in Visual Studio in Project properties, Build tab. Are they connected somehow? Does one of them takes precedence when compiling?

回答1:

They are not connected. The compilation tag is ASP.NET only, while the project option one is for Windows Forms, console, WPF and so on.

ASP.NET compilation is so special, so you have to dive further to learn about every piece of it,

http://msdn.microsoft.com/en-us/library/ms178466.aspx



回答2:

Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.