Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

Posted

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
Posted

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

  • 3 months later...
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.