xsharp.eu • XIDE: How to add app icon and use Assembly.prg
Page 1 of 1

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

Posted: Tue Oct 09, 2018 6:56 pm
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

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

Posted: Tue Oct 09, 2018 7:48 pm
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

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

Posted: Tue Oct 09, 2018 8:14 pm
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

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

Posted: Tue Oct 09, 2018 8:35 pm
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

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

Posted: Tue Oct 09, 2018 9:26 pm
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