Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 598665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:24:47+00:00 2026-05-13T16:24:47+00:00

I use VS 2008 to develop and I use CCNet to build, test and

  • 0

I use VS 2008 to develop and I use CCNet to build, test and deploy our applications to a staging server. I would like to be able to remove the debug="true" setting from web.config as part of the deployment process.

I know I could just set <deployment retail="true"/> in machine.config, but I don’t always have that much access the servers we deploy to. I could just write a bit of code to strip the setting from the web.config, but I was wondering if there was a way I could do it out of the box with msbuild or CCNet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:24:48+00:00Added an answer on May 13, 2026 at 4:24 pm

    You can use the MSBuild Community Tasks and do:

    <XmlUpdate 
            XmlFileName="web.config" 
            XPath="//configuration/system.web/compilation/@debug" 
            Value="false"/>
    

    Or you can use various built-in Visual Studio transformation techniques:

    • VS2010+ has a full set of transformation techniques built just for this which does it very cleanly:

    <configuration xmlns:xdt="...">
    <compilation xdt:Transform="RemoveAttributes(debug,batch)">
    </compilation>
    </configuration>

    • VS2005 and 2008 Web Deployment projects allow you to substitute portions of a web config (as Paddy linked to)
    • Not certain but MSDeploy has some form of capability around this
    • NAnt has an xmlpoke

    NB this is a duplicate of
    Setting debug=false in web.config as part of build (Which I found too late; have put a vote to close on this)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to use Visual Studio 2008 IDE for editing my local database schema
What is the best way to use SQL Server 2008 as a development database,
I currently use VS 2008 Professional, but I'm trying to get Team System Developer
I use Visual Studio 2008. I haven't seen this behavior before and, as far
I use Visual C++ 2008 in Visual Studio 2008. I frequently use the following
We use Visual Studio 2008 and Surround SCM for source control. SCM drops files
We use Visual Studio 2008 for C# application development. We launch three process when
I used to use discountasp.net and I can use Visual Studio 2008 to publish
How do I use the profiler in Visual Studio 2008? I know theres a
I am trying to use the new DATETIMEOFFSET data type in SQL 2008 but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.