fbpx

XIDE: How to add app icon and use Assembly.prg

More
2 months 3 days ago #1 by SHirsch
Hi,

how can I add an icon for my exe file and still have the version info from Assembly.prg in file properties available? (see att.)
I tried Properies -> Application Icon.
Is there another way?

Stefan
Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #2 by Chris
Hi Stefan,

The only way I know to do this, is to manuall provide a native resource which also provides this information.

Please try the attached .rc file, edit it so it contains your information add it to your app/library with Add Existing->Add Native resources (not regular resources, has to be "native"). You should now have both an app icon and also version info.

Chris

XSharp Development Team
chris(at)xsharp.eu
Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #3 by robert
Stefan,
If you app has native resources (rc files, like VO window or menu resources) then you need an native versioninfo to set the version. Otherwise you can add an AssemblyInfo.prg with assembly attributes. The compiler will set the information from these attributes also as version info on the DLL/EXE.
An example from a assemblyinfo.prg is in every new X# project inside Visual Studio.

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #4 by SHirsch
Hi Chris,

I tried in Visual Studio. There I have added an icon resource and set the application icon. The information from AssemblyInfo.prg is still used.
But how can this be done in XIDE? Without using native resources.

Stefan

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #5 by Chris
Hi Stefan,

Hmm, I don't think this is possible, as Robert said, if you have any other native resources, you need to use the version info in native resources as well. Maybe we are both missing something though, so can you please zip and send me the VS solution where you have this working?

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.