Chris,
Chris:
In VO I was able to compile everything into one EXE. Like this:
lib1
lib2
lib3
exe ---- > one_big_exe
This was very convenient because it was so easy to issue updates.
Now in XSharp (XIDE) it compiles like this:
lib1 ---- > lib1.dll
lib2 ---- > lib2.dll
lib3 ---- > lib3.dll
exe ---- > one_tiny.exe
Obviously I'd like it all to compile into one_big.exe. Is there a way to do that in XIDE ?
If there's a section in the Help that covers this, just point me to it.
Compile to One_Big.exe
Compile to One_Big.exe
Joe Curran
Ohio USA
Ohio USA
Compile to One_Big.exe
Joe,
This is not possible without special tools.
There is something like "ILMerge" which should be able to merge various .Net assemblies into one DLL or EXE, but I am not sure if that works with X# assemblies.
What do you expect to gain from having everything in one EXE file ?
Robert
This is not possible without special tools.
There is something like "ILMerge" which should be able to merge various .Net assemblies into one DLL or EXE, but I am not sure if that works with X# assemblies.
What do you expect to gain from having everything in one EXE file ?
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
Compile to One_Big.exe
Makes things simpler. When you have only one .exe for the project, then it's easy to see what version they're using by looking only at the .exe rather than scanning the ever-changing .dll files.
Joe Curran
Ohio USA
Ohio USA
Compile to One_Big.exe
And to be clear: I was referring only to one .exe for my project, and not for all the various .Net and XSharp assemblies.
Joe Curran
Ohio USA
Ohio USA
Compile to One_Big.exe
Hi Joe,
It's different in .Net than in VO, in VO you have a linker that takes all parts and compiles them into one piece, while in .Net you always work with concrete "assemblies" (exe and dll files). I had thought in the past about introducing a special feature in XIDE to emulate libraries as in VO, but it would had complicated things a lot, since .Net is just not designed for that.
Of course you can still share the exact same .prg files among many different exes and libraries though, if that's what you need to do. Also in XIDE/VS, you can group files (modules) under containers, can even group libraries in containers, there is so much more structure available that I think makes the usage of VO's concept of libraries redundant.
It's different in .Net than in VO, in VO you have a linker that takes all parts and compiles them into one piece, while in .Net you always work with concrete "assemblies" (exe and dll files). I had thought in the past about introducing a special feature in XIDE to emulate libraries as in VO, but it would had complicated things a lot, since .Net is just not designed for that.
Of course you can still share the exact same .prg files among many different exes and libraries though, if that's what you need to do. Also in XIDE/VS, you can group files (modules) under containers, can even group libraries in containers, there is so much more structure available that I think makes the usage of VO's concept of libraries redundant.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
- lumberjack
- Posts: 727
- Joined: Fri Sep 25, 2015 3:11 pm
- Location: South Africa
Compile to One_Big.exe
Hi Joe,
I create my DLLs as normal since it makes development/testing of shared code easier, but then create a EXE project with reference to the source code files that I use to produce the EXE. Give me the option to have seperate DLLs or have a single EXE for the project.
Can hence edit the .PRG from various access points.
I do it a lot.OhioJoe wrote:And to be clear: I was referring only to one .exe for my project, and not for all the various .Net and XSharp assemblies.
I create my DLLs as normal since it makes development/testing of shared code easier, but then create a EXE project with reference to the source code files that I use to produce the EXE. Give me the option to have seperate DLLs or have a single EXE for the project.
Can hence edit the .PRG from various access points.
______________________
Johan Nel
Boshof, South Africa
Johan Nel
Boshof, South Africa
Compile to One_Big.exe
I didn't think of that!
(Of course, if you've noticed my posts elsewhere on this site you already know that thinking isn't my strong suit.)
So here's my question:
One project has 538 .prg files in 12 subfolders. Each subfolder represents a library/AEF from VO. Can you offer a suggestion on how I reference those to create one EXE in XIDE? (I figured it would be a separate project.) I will give it a try and report back. Thank you.
(Of course, if you've noticed my posts elsewhere on this site you already know that thinking isn't my strong suit.)
So here's my question:
One project has 538 .prg files in 12 subfolders. Each subfolder represents a library/AEF from VO. Can you offer a suggestion on how I reference those to create one EXE in XIDE? (I figured it would be a separate project.) I will give it a try and report back. Thank you.
Joe Curran
Ohio USA
Ohio USA
- lumberjack
- Posts: 727
- Joined: Fri Sep 25, 2015 3:11 pm
- Location: South Africa
Compile to One_Big.exe
Hi Joe,
HTH,
In XIDE, just right-click on the Project definition in the right panel, select Add existing file, go to the folder select all and on the Prompt it is not in the project folder, make sure you select not to copy...OhioJoe wrote:
Can you offer a suggestion on how I reference those to create one EXE in XIDE? (I figured it would be a separate project.)
HTH,
______________________
Johan Nel
Boshof, South Africa
Johan Nel
Boshof, South Africa
Compile to One_Big.exe
Yeah, it depends on if you want to use the exact same files in your existing folder layout, or you prefer to have the files copied to a new XIDE project file structure.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Compile to One_Big.exe
Ba-da-BING !
It worked !
Thank you, Johan.
Chris, this left many compiler warnings that I wasn't getting before. I'll try to work them out before contacting you again. In the meantime this will make it much easier to post, distribute and test our applications.
It worked !
Thank you, Johan.
Chris, this left many compiler warnings that I wasn't getting before. I'll try to work them out before contacting you again. In the meantime this will make it much easier to post, distribute and test our applications.
Joe Curran
Ohio USA
Ohio USA