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

  • SEARCH
  • Home
  • 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 6244401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:19:15+00:00 2026-05-24T12:19:15+00:00

Is there an easy way to configure different configuration files for publishing with click

  • 0

Is there an easy way to configure different configuration files for publishing with click once in a WinForms application? I’m looking to create a Settings/app.config depending on the solution configuration, ie: Debug/Release, and have the same setting keys, but pointing to different machines/db’s for development/production connections for each solution configuration.

Thanks,

Mark

  • 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-24T12:19:16+00:00Added an answer on May 24, 2026 at 12:19 pm

    Sadly, unlike ASP.Net VS2010 does not support different config files for Debug/Release. Its frustrating that the various VS teams don’t co-ordinate a little better as the feature in ASP is very useful.

    Really, the only place to change the app.config for your debug vs release is in your build process after running msbuild.

    I wrote and sell a piece of software called ClickOnceMore that supports different environments (debug, staging, QA, production etc) using a macro approach. You can define a different value for each macro depending on the build type (which can be passed in on the command line). You can then use the value of those macros to either pick up a different config file or to replace values in a config file template.

    A simpler approach in ClickOnceMore lets you use the built in macro [DebugOrRelease] to pick up a different config file for Debug or Release builds.

    You can download a free trial of ClickOnceMore here: http://www.clickoncemore.net if you have any problem making your scenario work just let me know, it should be able to do exactly what you want to do.

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

Sidebar

Related Questions

Is there an easy way in C# to create Ordinals for a number? For
Is there a way to configure easy_install to avoid having to download the files
Is there any easy way to configure permanent redirects (301) on openCMS? I would
Is there any way to configure VS2010 to use different color schemes for different
Is there easy way to send email notification with cruise control? I Was reading
Is there any easy way to exchange the position of 2 elements - or
Is there an easy way to add shadows in opengl-es 1.x? Or only in
Is there an easy way to migrate a hosted LAMP site to Amazon Web
Is there an easy way how can I get in C char * from
Is there an easy way to iterate over an associative array of this structure

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.