Welcome, Guest
Username: Password: Remember me
Hier wird Deutsch gesprochen
  • Page:
  • 1

TOPIC:

Versionsanzeige 10 Mar 2023 14:38 #25589

  • Kohle
  • Kohle's Avatar
  • Topic Author


  • Posts: 13
  • Für die Anzeige der Programmversion mit externen Hilfsmitteln, z.B. im Explorer oder über Dateieigenschaften habe ich bisher unter VO die folgende Routine benutzt:

    RESOURCE VS_VERSION_INFO VERSIONINFO
    FILEVERSION 3,1,3,3131
    PRODUCTVERSION 3,1,3,__VERSION__
    FILEFLAGSMASK 0x3fL
    FILEFLAGS 0x00L
    FILEOS VOS__WINDOWS32
    FILETYPE VFT_APP
    FILESUBTYPE 0x0L
    BEGIN
    BLOCK "StringFileInfo"
    BEGIN
    BLOCK "040904b0"
    BEGIN
    VALUE "Comments", "Gartenvereinsmanager"
    VALUE "CompanyName", "F.K. Software Bitterfeld"
    VALUE "FileDescription", "F.K. Gartenvereinsmanager"
    VALUE "FileVersion", "3.1.3.3131"
    VALUE "InternalName", "GVM_Win32"
    VALUE "LegalCopyright", "Copyright \251 2001 - 2023 F.K. Software"
    VALUE "OriginalFilename", "GVM.EXE"
    VALUE "ProductName", "F.K. Gartenvereinsmanager"
    VALUE "ProductVersion", "3.1c"
    END
    END
    BLOCK "VarFileInfo"
    BEGIN
    VALUE "Translation", 0x409, 1200
    END
    END

    Im zu X# konvertierten Programm wird nun nichts mehr angezeigt. Die Programmversion ist nun 0.0.0.0.
    Gibt es eine Möglichkeit, die Anzeige zu reaktivieren?

    Viele Grüße

    Frank Kohle

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

    Versionsanzeige 10 Mar 2023 14:43 #25590

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3367
  • Hallo Frank,
    ist die Versioninfo-Resource nach wie vor da?



    Oder gibt es ein AssemblyInfo.prg?
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it
    Attachments:

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

    Last edit: by wriedmann.

    Versionsanzeige 10 Mar 2023 14:58 #25591

    • Kohle
    • Kohle's Avatar
    • Topic Author


  • Posts: 13
  • Hallo Wolfgang,
    der Code ist bei der Konvertierung von VO offensichtlich verlorengegangen.
    Frank

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

    Versionsanzeige 10 Mar 2023 18:34 #25594

    • Kohle
    • Kohle's Avatar
    • Topic Author


  • Posts: 13
  • Im XIDE-Projekt-Browser ist nichts zu finden. Der Windows-Explorer findet im Projektverzeichnis aber die Datei Standard Menus.VS_VERSION_INFO.rc .

    Frank

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

    Versionsanzeige 11 Mar 2023 07:14 #25598

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3367
  • Hallo Frank,
    vielleicht möglicherweise sollte man sich mal den XPorter anschauen.
    @Chris: what should the XPorter/VO do with the versionInfo resource in the migration process?
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    Versionsanzeige 11 Mar 2023 07:55 #25600

    • robert
    • robert's Avatar


  • Posts: 3600
  • Guys,
    Please also check the /usenativeversion compiler option:

    www.xsharp.eu/help/opt-usenativeversion.html

    If you want to use the version from the resource then you need to include this compiler option

    Robert
    XSharp Development Team
    The Netherlands

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

    Versionsanzeige 11 Mar 2023 08:29 #25604

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Guys,

    Some old VOXporter versions indeed were not exporting the VERSION resource, but this is fixed since many months now.

    Frank, please check in the <Resources> node in the Project window, doesn't it contain there an entry for a file Standard Menus.rc? If yes, if you open this, you will see it includes the version resource (actually it contains all resources found in this module in VO, except for those used in menus and windows) in it and all you will need to do is to go to the Application Properties window, Compiler page and as Robert pointed out, check the option "/usenativeversion: Prefer Native version resource"

    If this cannot be found in the <Resources>, then for some reason it was removed and you need to add it. Please right-click on the Application in the Project window, select Add Existing->Add Native Resources and pick the file Standard Menus.VS_VERSION_INFO.rc. Also set the /usenativeversion option as described above and now it should work

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Last edit: by Chris.

    Versionsanzeige 11 Mar 2023 16:53 #25606

    • Kohle
    • Kohle's Avatar
    • Topic Author


  • Posts: 13
  • Hallo, leider bisher kein Erfolg. Die Datei Standard Menus.VS_VERSION_INFO.rc lässt sich hinzufügen, ist aber anschließend im Projekt nicht wiederzufinden: Beim Versuch, diese Datei anschließend nochmals hinzuzufügen kommt die Meldung, dass sie schon vorhanden ist. Das anschließende Compilieren mit dem Schalter /usenativeversion funktioniert, aber die Versionsnummer ist trotzdem im feritgen Programm nicht enthalten.Frank
    Attachments:

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

    Versionsanzeige 11 Mar 2023 17:07 #25607

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3367
  • Hallo Frank,
    vieleicht probierst Du mal den anderen Weg:
    lege im Programm ein AssemblyInfo.prg an und gib dort die Versionsinformationen an.
    Einfach in der XIDE "Create new", "Create new file" und "AssemblyInfo" wählen.
    Das wäre der richtige Weg für .NET/X#.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    Versionsanzeige 11 Mar 2023 18:49 #25608

    • Kohle
    • Kohle's Avatar
    • Topic Author


  • Posts: 13
  • Hallo,

    ich habe jetzt einfach das ganze Projekt aus einer neu erstellten VO-AEF-Datei neu erstellt und mit dem Schalter /usenativeversion kompiliert. Nun funktioniert die Anzeige.
    Vielen Dank für die Bemühungen.

    Frank

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

    • Page:
    • 1
    Moderators: wriedmann