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 6147589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:07:42+00:00 2026-05-23T19:07:42+00:00

I have 1 vs2008 solution that i need to deploy for 3 clients. Each

  • 0

I have 1 vs2008 solution that i need to deploy for 3 clients.
Each client has a hardcoded setting and it’s own app icon so i compile 3 versions.

What i do now each time is change the app icon, change the client’s setting in my code and compile for each client. I want to avoid those steps each time.

Is there a way i can compile once and get 3 executables in 3 folders or with different names?
Or have 3 projects sharing the same code?

  • 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-23T19:07:43+00:00Added an answer on May 23, 2026 at 7:07 pm

    As hinted at in Josh’s comment: this sounds like a job for application configuration settings. Going this route, the code doesn’t need to change for each compile, just the deployed configuration file.

    However, in the interest of answering your question as-is, you could use the Configuration Manager (Build menu -> Configuration Manager) to define seperate Solution Configurations. Out of the box you get a Debug and Release configuration, but there’s nothing stopping you from creating your own. In these configurations, you could define an additional compilation symbol/constant in your project’s Build settings, and then, in your code, using that constant, change your code, so, let’s:

    1. Define three solution configurations Debug_A, Debug_B and Debug_C.
    2. Switching to Debug_A, open project properties, and on the Build tab define “DEBUGA” as an additional Conditional compilation symbol. (Repeat for Debug_B and Debug_C with their own constants.)
    3. Finally, in code:

      string configValue = string.Empty;
      Image icon = null;
      #if DEBUGA
      configValue = "A";
      icon = Resources.IconA;
      #elsif DEBUGB
      configValue = “B”;
      icon = Resources.IconB;
      #elsif DEBUGC
      configValue = "C";
      icon = Resources.IconC;
      #endif

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

Sidebar

Related Questions

I have a strange problem with VS2008. My solution has 8 projects (all c#)
I have solution sln, that has many csproj projects. anyone know a way to
I have two applications in two solutions in VS2008 that share a common dll,
I have a VS2008 solution using xml documentation, and we have warnings as errors
Aloha I have a VS2008 solution to which I want to add a webservice
Here's the setup I have in a vs2008 solution: Data layer in a project
Anyone have experience with adding a ReSharper profile to the VS2008 solution and share
I have a C++ solution in VS2008 with multiple projects. This solution contains files
I have an app using the ADO.NET entity framework (the VS2008 version, not the
I have a solution with a SQL CLR project in VS2008. The solution /

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.