visual studio - Is there a "release" configuration for ASP.NET Web Sites? -


i use visual studio website development (vs 2010 ultimate , vs 2012 professional). more specific, created website file > new web site, not believe project.

while developing website, have debug="true" enabled in web.config file. when publish, manually change debug="false".

<configuration>     <system.web>         <compilation debug="true" strict="true" explicit="true" targetframework="4.5">     </system.web> </configuration> 

there 2 config files in solution: "web.config" , "web.debug.config".

this various forum articles , "programming asp.net" books do, wonder if there way have debug="true" local development , automatically switch debug="false" when using build > publish web site don't have manually change web.config file?

according this forum answer, "there no way have release configuration website."

keeping in mind web site , not project, looks adding config based on comment suggestions might not possible. possibly valid answer "no, not possible in context."

is there way achieve intended outcome without using current workaround of manually changing debug setting?

sorry, it's related being "web site" type project, aren't compiled:

configuration of publishing asp.net web site

to quote previous responder above:

"web site projects don't have release configuration available, makes no difference since not compiled. web application projects, on other hand, compiled , have both configurations available."


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -