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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:27:05+00:00 2026-05-26T12:27:05+00:00

I have a C#/WPF app. I am trying to create different versions that will

  • 0

I have a C#/WPF app. I am trying to create different versions that will ship to different customers with their branding.
The branding is currently in the AssemblyInfo.cs, an icon, splash screen, exe name.

I thought I could create separate project configurations and then I thought I could just create separate AssemblyInfo.cs files for each customer.

But the project seems to only allow one assemblyinfo and does not allow this to be changed on a per configuration basis (e.g. it is the first tab in the Project Properties dialog).

Is a better way to somehow put the AssemblyInfo.cs info in a resource and then have multiple resource files, one for each customer, and have separate configurations that link in the different resource?

I was hoping then as I continued development, I could develop under the native branding and then just Batch Build all the release builds to produce the exes for each customer.

Any help or suggestions on how I can make a maintainable solution would be great.

  • 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-26T12:27:06+00:00Added an answer on May 26, 2026 at 12:27 pm

    The AssemblyInfo.cs file, while being a class file, doesn’t actually have any class information in it, by default it simply contains attributes. You can use conditional compilation symbols around these attributes:

    #if MY_SYMBOL
    [assembly: AssemblyTitle("Tim's Magical Application")]
    #else
    [assembly: AssemblyTitle("Some Other Name")]
    #endif
    

    you can also use your own custom attributes in there.

    But the project seems to only allow one assemblyinfo

    This file resides in the Properties folder of the project. You can also have another .cs file sitting beside it with another list of attributes in it (i.e. AssemblyInfo.custom.cs). Any entries you change via the project properties dialog are reflected in the original AssemblyInfo.cs file, leaving your custom one untouched.

    So if you decide to use attributes in the AssemblyInfo.cs to control the customer specific branding then you have a couple of ways to do it. Personally though I would have a neutral image loosely packaged, and use either my build process or installer build to include the appropriate branding images in the distributable package (replacing the neutral image).

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

Sidebar

Related Questions

i am trying to create a wpf app and have different parts in user
I am trying to create a WPF application that will be a central point
I have a WPF App that implements a ListView. I would like to show
I have a WPF app that is using the MVVM pattern. Hooking up buttons
I have a wpf app that needs to communicate(exchange data) with a custom designed
We have a WPF app that allows our users to download encrypted content and
Context: I have a WPF App that uses certain unmanaged DLLs in the D:\WordAutomation\MyApp_Source\Executables\MyApp
This is an interesting conundrum. We have a WPF app that has a Vista-like
I am trying to create my hello world windows app in WPF. What should
I have a WPF application that mostly follows MVVM, which I am trying to

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.