Re: ILMerge'd exe fails - can't find CF
- From: "Neil Cowburn" <neilc@[nospamthanks].opennetcf.com>
- Date: Wed, 14 Feb 2007 11:48:22 -0000
There is a new build of ILMerge that fixes this issue. See my blog post for more details:
http://blog.opennetcf.org/ncowburn/2007/01/30/UsingILMergeOnCompactFrameworkApplications.aspx
--Neil
--
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.
http://www.opennetcf.com/
"Neil Cowburn" <neilc@[nospamthanks].opennetcf.com> wrote in message news:C2B72FB6-4CF9-4724-AC6F-BCE1CE624501@xxxxxxxxxxxxxxxx
You need to use the /targetplatform command-line argument so that ILMerge will reference the correct BCL assemblies.
See here for more details:
http://blog.opennetcf.org/ncowburn/2007/01/30/UsingILMergeOnCompactFrameworkApplications.aspx
--
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.
http://www.opennetcf.com/
"Ofer B." <OferB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:70330DAF-A7B3-411E-BED3-9EC465E66107@xxxxxxxxxxxxxxxxI run ILMerge with "log" option and got this log file:
========================================
Running on Microsoft (R) .NET Framework v2.0.50727
mscorlib.dll version = 2.0.0.0
The list of input assemblies is:
T:\MobileBin\NgsSrvr.exe
T:\MobileBin\Ngs.PdaTypes.dll
T:\MobileBin\Elbit.Bsw.MoblieStubs.dll
T:\MobileBin\Ngs.PdaClnt.dll
T:\MobileBin\Ngs.PdaNmea.dll
T:\MobileBin\Ngs.PdaPluginTypes.dll
T:\MobileBin\Ngs.PdaSim.dll
T:\MobileBin\Ngs.PdaSrvr.dll
Trying to read assembly from the file 'T:\MobileBin\NgsSrvr.exe'.
Successfully read in assembly.
There were no errors reported in NgsSrvr's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaTypes.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaTypes's metadata.
Trying to read assembly from the file
'T:\MobileBin\Elbit.Bsw.MoblieStubs.dll'.
Successfully read in assembly.
There were no errors reported in Elbit.Bsw.MoblieStubs's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaClnt.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaClnt's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaNmea.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaNmea's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaPluginTypes.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaPluginTypes's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaSim.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaSim's metadata.
Trying to read assembly from the file 'T:\MobileBin\Ngs.PdaSrvr.dll'.
Successfully read in assembly.
There were no errors reported in Ngs.PdaSrvr's metadata.
Checking to see that all of the input assemblies have a compatible PeKind.
NgsSrvr.PeKind = ILonly
Ngs.PdaTypes.PeKind = ILonly
Elbit.Bsw.MoblieStubs.PeKind = ILonly
Ngs.PdaClnt.PeKind = ILonly
Ngs.PdaNmea.PeKind = ILonly
Ngs.PdaPluginTypes.PeKind = ILonly
Ngs.PdaSim.PeKind = ILonly
Ngs.PdaSrvr.PeKind = ILonly
All input assemblies have a compatible PeKind value.
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly 'System'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly 'System'.
Resolved assembly reference 'System' to 'T:\MobileBin\System.dll'. (Used
referencing Module's directory.)
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly
'Microsoft.WindowsCE.Forms'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'Microsoft.WindowsCE.Forms'.
Resolved assembly reference 'Microsoft.WindowsCE.Forms' to
'T:\MobileBin\Microsoft.WindowsCE.Forms.dll'. (Used referencing Module's
directory.)
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly
'System.Windows.Forms'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'System.Windows.Forms'.
Resolved assembly reference 'System.Windows.Forms' to
'T:\MobileBin\System.Windows.Forms.dll'. (Used referencing Module's
directory.)
Merging assembly 'NgsSrvr' into target assembly.
AssemblyResolver: Assembly 'NgsSrvr' is referencing assembly 'System.Drawing'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'System.Drawing'.
Resolved assembly reference 'System.Drawing' to
'T:\MobileBin\System.Drawing.dll'. (Used referencing Module's directory.)
Merging assembly 'Ngs.PdaTypes' into target assembly.
AssemblyResolver: Assembly 'Ngs.PdaTypes' is referencing assembly
'System.Xml'.
AssemblyResolver: Attempting referencing assembly's directory.
Can not find PDB file. Debug info will not be available for assembly
'System.Xml'.
Resolved assembly reference 'System.Xml' to 'T:\MobileBin\System.Xml.dll'.
(Used referencing Module's directory.)
Merging assembly 'Elbit.Bsw.MoblieStubs' into target assembly.
Merging assembly 'Ngs.PdaClnt' into target assembly.
Merging assembly 'Ngs.PdaNmea' into target assembly.
Merging assembly 'Ngs.PdaPluginTypes' into target assembly.
Merging assembly 'Ngs.PdaSim' into target assembly.
Merging assembly 'Ngs.PdaSrvr' into target assembly.
Merging assembly-level attributes from assembly 'NgsSrvr' into target
assembly.
Copying 5 Win32 Resources from assembly 'NgsSrvr' into target assembly.
Transferring entry point 'NgsSrvr.Program.Main' from assembly 'NgsSrvr' to
assembly 'NgsSrvrMerge'.
There were no errors reported in the target assembly's metadata.
ILMerge: Writing target assembly 'T:\MobileBin\NgsSrvrMerge.exe'.
Location for referenced module 'coredll.dll' is ''
Location for referenced module 'aygshell.dll' is ''
Location for referenced module 'kernel32.dll' is ''
Location for referenced module 'kernel32' is ''
Location for referenced assembly 'System.Windows.Forms' is
'T:\MobileBin\System.Windows.Forms.dll'
There were no errors reported in System.Windows.Forms's metadata.
Location for referenced assembly 'mscorlib' is
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll'
There were no errors reported in mscorlib's metadata.
Location for referenced assembly 'System' is 'T:\MobileBin\System.dll'
There were no errors reported in System's metadata.
Location for referenced assembly 'System.Drawing' is
'T:\MobileBin\System.Drawing.dll'
There were no errors reported in System.Drawing's metadata.
Location for referenced assembly 'Microsoft.WindowsCE.Forms' is
'T:\MobileBin\Microsoft.WindowsCE.Forms.dll'
There were no errors reported in Microsoft.WindowsCE.Forms's metadata.
Location for referenced assembly 'System.Xml' is 'T:\MobileBin\System.Xml.dll'
There were no errors reported in System.Xml's metadata.
ILMerge: Done.
========================================
I can find here 2 problems:
1. the first line: "Running on Microsoft (R) .NET Framework v2.0.50727" and
not CF 2.0
2. the line "Location for referenced assembly 'mscorlib' is
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll'" - this is the
pc dll and not the CF 2.0
"Tim" wrote:
I'm using the lates ILMerge (2.0.7.112) and have built a merged executable,
but when I try to launch it in the Pocket PC, I get this error even after
re-installing CF 2.0 (and doing a soft reset)
..NET CF Initialization Error,
The application failed to load required components.
If the .NET CF is installed on a storage card,
please ensure that this card is in place and launch the application again.
If this fails, a re installation of the .NET CF is recommended.
Any ideas?
Tim
.
- Prev by Date: FTP FtpFindFile
- Next by Date: Re: using the WindowMediaPlayer object on smartphone freezes application
- Previous by thread: FTP FtpFindFile
- Next by thread: HttpWebRequest Accept-Encoding: gzip Header
- Index(es):
Relevant Pages
|