xsharp.eu • VO2X# porter to generate one file per class and not large files with many classe
Page 1 of 1

VO2X# porter to generate one file per class and not large files with many classe

Posted: Thu Dec 15, 2022 11:53 am
by mk_schmid
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.

VO2X# porter to generate one file per class and not large files with many classe

Posted: Thu Dec 15, 2022 12:35 pm
by Chris
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.

VO2X# porter to generate one file per class and not large files with many classe

Posted: Thu Dec 15, 2022 1:53 pm
by ic2
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

VO2X# porter to generate one file per class and not large files with many classe

Posted: Thu Dec 15, 2022 2:43 pm
by wriedmann
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:
15-12-2022_15-42-32.png
15-12-2022_15-42-32.png (9.05 KiB) Viewed 1750 times
Wolfgang

VO2X# porter to generate one file per class and not large files with many classe

Posted: Fri Dec 16, 2022 6:35 am
by mk_schmid
Hello Chris,
I would like to test this special version, could you please provide it to me.
Thanks

VO2X# porter to generate one file per class and not large files with many classe

Posted: Fri Dec 16, 2022 6:43 am
by mk_schmid
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

VO2X# porter to generate one file per class and not large files with many classe

Posted: Fri Dec 16, 2022 7:33 am
by Chris
Hi Christian,
mk_schmid post=24790 userid=6786 wrote: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?

VO2X# porter to generate one file per class and not large files with many classe

Posted: Fri Dec 16, 2022 12:26 pm
by FFF
well, following thebold patter, dividing designrr an code by ineritance, you get that for free...