fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

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

XIDE: How to add app icon and use Assembly.prg 4 months 1 week ago #1

  • SHirsch
  • SHirsch's Avatar Topic Author
  • Offline
  • Posts: 81
  • Thank you received: 1
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.

XIDE: How to add app icon and use Assembly.prg 4 months 1 week ago #2

  • Chris
  • Chris's Avatar
  • Offline
  • Posts: 898
  • Thank you received: 11
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.

XIDE: How to add app icon and use Assembly.prg 4 months 1 week ago #3

  • robert
  • robert's Avatar
  • Offline
  • Posts: 798
  • Karma: 6
  • Thank you received: 15
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.

XIDE: How to add app icon and use Assembly.prg 4 months 1 week ago #4

  • SHirsch
  • SHirsch's Avatar Topic Author
  • Offline
  • Posts: 81
  • Thank you received: 1
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.

XIDE: How to add app icon and use Assembly.prg 4 months 1 week ago #5

  • Chris
  • Chris's Avatar
  • Offline
  • Posts: 898
  • Thank you received: 11
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.

  • Page:
  • 1