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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:54:00+00:00 2026-05-28T01:54:00+00:00

I have a WPF solution, compiled to 2 .exe files, A.exe and B.exe. A.exe,

  • 0

I have a WPF solution, compiled to 2 .exe files, A.exe and B.exe.
A.exe, everything is fine.
B.exe, during running time, the top left corner shows the icon properly, but when viewed in File Explorer or shown in “Start->Program Files->B” menu, the icon is empty.

I’m a bit lost how to debug this issue:

  • apparently the resource is there, as running time the icon appears in the window;
  • i can’t find a way to debug the procedure of “File Explorer detecting icons in .exe file”, no log, no breaking point;
  • Some strange things: previously the scenario is reversed, B.exe is fine, while A.exe has problem; then my guys keep on coding, and one day it reverted…

I used CodeReflect to see what is inside A.exe and B.exe, it shows

A
- A.exe // codes inside
- Resources
  - A.g.resources
    - appicon.ico
    - app.baml
  - A.Properties.Resources.resources


B
- B.exe // codes inside
- Resources
  - EnhauncedByPostSharp // nothing is listed
  - PostSharp.Aspects.814640628.1 // binary things listed
  - B.g.resources
    - appicon2.ico
    - app.baml
    - resource/iconresource.xaml
    - resource/datatemplates/views/ControlElementsDataTemplates.baml
    - Views/B.baml
    - ... and other baml files
  - B.Properties.Resources.resources

I ‘m not sure how PostSharp jumped into place. Yes we use PostSharp but it’s a blackbox to me…

Appreciate if you guys could shed some light here…. thanks!

  • 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-28T01:54:00+00:00Added an answer on May 28, 2026 at 1:54 am

    You need to set the icon in the Project Properties. The EXE icon does not by default use the main window’s icon.

    Right click on the EXE project in visual studio, go to Properties, and (assuming that you are using Visual Studio 2010), there is a dropdown in the Application tab titled “Icon”. You need to set your icon there.

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

Sidebar

Related Questions

I have a WPF application (KaleidoscopeApplication) organized as follows: Solution (6 projects) Cryptography (DLL)
I have a fairly small solution that includes a WPF windows application. It builds
I have a smll web solution where i allow usres to upload small wpf
I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate +
I have an error with my Xaml files in a WPF application. I'm not
I'm working on a solution where I have a WPF project that is using
I have a WPF Application project with several project references within a single solution
I have installed WPF Toolkit: Location: C:\Program Files\WPF Toolkit\v3.5.40320.1\WPFToolkit.dll Name: WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35
I have an WPF-MVVM solution with multiple service projects interconnected by a web of
I have a prism/wpf/mef solution that contains an AvalonDock. I created a RegionAdapterBase<Pane> class

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.