Marco Milesi Posted December 10, 2015 Report Posted December 10, 2015 Hi all it's possible incorporate the FSUIPC.DLL in a executable file written in vbnet to deploy as a single file (exe only) ? If yes how ? P.S. I call the FSUIPC.DLL from vb net as a resource. Thanks Marco
Paul Henty Posted December 10, 2015 Report Posted December 10, 2015 See the following post for how to merge the DLL and your exe. Note however that this is for the normal linking situation where you just add a reference to the DLL file on the disk. I don't know if it will work if you've added the DLL as a resource. http://forum.simflight.com/topic/78233-embed-fsuipcclientdll-in-exe/ Paul
Marco Milesi Posted December 13, 2015 Author Report Posted December 13, 2015 Thanks Paul but i have this error: Checking to see that all of the input assemblies have a compatible PeKind. DFYFlightCenter.PeKind = ILonly, Requires32bits, Prefers32bits FSUIPCClient.PeKind = ILonly, Requires32bits The assembly 'FSUIPCClient' has a value for its PeKind flag, 'ILonly, Requires32bits' that is not compatible with 'ILonly, Requires32bits, Prefers32bits'. An exception occurred during merging: ILMerge.Merge: The assembly 'FSUIPCClient' has a value for its PeKind flag, 'ILonly, Requires32bits' that is not compatible with 'ILonly, Requires32bits, Prefers32bits'. in ILMerging.ILMerge.Merge() in ILMerging.ILMerge.Main(String[] args) Marco
Paul Henty Posted December 13, 2015 Report Posted December 13, 2015 Your DFYFlightCenter.exe is being compile with the 'Prefer 32 Bit' option ticked. This needs to be unticked and the 'target CPU' or 'platform target' set to x86. You can find these options in the properties window of the project, on the 'Build' (C#) or 'Compile' (VB) tab. Paul
vgmarimon Posted April 13, 2016 Report Posted April 13, 2016 I use this in a .bat file: "C:\Program Files\Microsoft\ILMerge\ilmerge.exe" infile.exe FSUIPCClient.dll MySql.Data.dll /out:fileout.exe /target:winexe /targetplatform:v4 /log:mergelog.log /ndebug This embed both FSUIPC and MYSQL DLL files into one .EXE file.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now