Mind the GAP, o sorry, I wanted to say: mind the GAC!
Posted: Mon Aug 03, 2020 8:28 am
The Installer recommends using the GAC for the X#-Runtime, I would recommend not to use it and verify that no DLLs are below C:WindowsMicrosoft.NETassemblyGAC_MSILXSharp.RT. Of course initially it is easier for starting and compiling. But if you have the discipline to copy the correct runtime dlls into every exe directory you have together with the compiling of the projects you have the following advantages:
- You can have different versions of programs not interfering with other versions or the newest X#-Version.
- You have nearly the same situation on your development machine as on the customer machines: If the program is working on your computer and all dlls are loaded from the same directory, then most probably everything exists what is needed on the final machine. I verify the loading dlls with "Process Explorer" from Sysinternals.com
- You can have different versions of programs not interfering with other versions or the newest X#-Version.
- You have nearly the same situation on your development machine as on the customer machines: If the program is working on your computer and all dlls are loaded from the same directory, then most probably everything exists what is needed on the final machine. I verify the loading dlls with "Process Explorer" from Sysinternals.com