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

TOPIC:

VO2X# porter to generate one file per class and not large files with many classe 15 Dec 2022 12:53 #24779

  • mk_schmid
  • mk_schmid's Avatar
  • Topic Author


  • Posts: 6
  • Hello all,

    I have a question, is there a possibility to let the VO code to X# porter generate one file per class and not one big file with many classes per module? In my experience Visual Studio can handle many small files much better than less big ones.
    Christian Schmid

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

    Last edit: by mk_schmid.

    VO2X# porter to generate one file per class and not large files with many classe 15 Dec 2022 13:35 #24781

    • Chris
    • Chris's Avatar


  • Posts: 3855
  • Hi Christian,

    Actually this is semi-possible already, there's a hidden option for doing exactly that, but it's porting only the code, does not port window, menu etc binaries or resources (which is why the feature is hidden). In case that's what you are after (just the code), then I can send you that special version, but if you need to also edit windows etc after porting (which most likely you do), then I'm afraid this will not work. Unfortunately it would be extremely complicated adding support also for the binaries in this feature.
    XSharp Development Team
    chris(at)xsharp.eu

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

    VO2X# porter to generate one file per class and not large files with many classe 15 Dec 2022 14:53 #24782

    • ic2
    • ic2's Avatar


  • Posts: 1614
  • Hello Christiaan,

    Unless I misunderstand what you want: can't you just achieve that by creating 1 MEF per class within VO? In VO that is thanks to the repo structure and contrary to VS, extremely easy: create MEF's, sort existing code elsewhere on the class, select all entities of 1 class and drag them to your new empty MEF. Especially in the latest VO version(s) it works without problem I think, to be on the safe side you might want to re-enter VO and/or reindex after some moving.

    When ready, the X# VO Porter will create 1 prg from 1 MEF.

    Dick

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

    VO2X# porter to generate one file per class and not large files with many classe 15 Dec 2022 15:43 #24783

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3297
  • Hi Chris, hi Christian,
    it would be a nice option to split the code part of the windows.
    Personally I have done that manually in one ported project, keeping all the designer modules together and splitting up the handwritten code:

    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.

    VO2X# porter to generate one file per class and not large files with many classe 16 Dec 2022 07:35 #24790

    • mk_schmid
    • mk_schmid's Avatar
    • Topic Author


  • Posts: 6
  • Hello Chris,
    I would like to test this special version, could you please provide it to me.
    Thanks
    Christian Schmid

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

    VO2X# porter to generate one file per class and not large files with many classe 16 Dec 2022 07:43 #24791

    • mk_schmid
    • mk_schmid's Avatar
    • Topic Author


  • Posts: 6
  • Hello Dick,
    splitting within VO would probably work but due to the size of the application to be ported probably not practical. Thanks for the tip though.
    Christian
    Christian Schmid

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

    VO2X# porter to generate one file per class and not large files with many classe 16 Dec 2022 08:33 #24793

    • Chris
    • Chris's Avatar


  • Posts: 3855
  • Hi Christian,

    Hello Chris,
    I would like to test this special version, could you please provide it to me.
    Thanks

    I have trouble locating your email address, can you please send me (chris at xsharp eu) an email so I can reply to you?
    XSharp Development Team
    chris(at)xsharp.eu

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

    VO2X# porter to generate one file per class and not large files with many classe 16 Dec 2022 13:26 #24794

    • FFF
    • FFF's Avatar


  • Posts: 1398
  • well, following thebold patter, dividing designrr an code by ineritance, you get that for free...
    Regards
    Karl (X# 2.14.0.4; Xide 1.33; W8.1/64 German)

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

    • Page:
    • 1
    Moderators: wriedmann