dotnet / ILMerge

ILMerge is a static linker for .NET Assemblies.
MIT License
1.23k stars 170 forks source link

Is possible generate dll for .NET framework 4.8? #90

Open loncho67880 opened 4 years ago

loncho67880 commented 4 years ago

Hello,

I try generate a merge of dll's of framework 4.8, and appear this error:

AssemblyResolver: Assembly 'System.Data' is referencing assembly 'System.Transactions'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'System.Transactions'. Resolved assembly reference 'System.Transactions' to 'C:\Windows\Microsoft.NET\Framework64\v4.8\System.Transactions.dll'. (Used referencing Module's directory.) The assembly 'HBT_FacturaElectronica.Entities' was not merged in correctly. It is still listed as an external reference in the target assembly. An exception occurred during merging: ILMerge.Merge: The assembly 'HBT_FacturaElectronica.Entities' was not merged in correctly. It is still listed as an external reference in the target assembly. en ILMerging.ILMerge.Merge() en D:\Documentos\ILMerge-master\ILMerge\ILMerge.cs:línea 2002 en ILMerging.ILMerge.Main(String[] args) en D:\Documentos\ILMerge-master\ILMerge\ILMerge.cs:línea 2931

mike-barnett commented 4 years ago

I'm not sure why you are trying to merge in the framework assemblies themselves. Or did I misunderstand what your error was? Can you please post the results from running ILMerge with the /log option? Thanks!

loncho67880 commented 4 years ago

Hi

I had a dll's in 4.5 the dll's, i was make merge without problem, but now update this dll's to 4.8, and now not generate merge correctly.

this is the log complete

============================================= Timestamp (UTC): 27/08/2020 9:40:45 p. m. ILMerge version 3.0.0.0 Copyright (C) Microsoft Corporation 2004-2006. All rights reserved. ILMerge /allowDup D:\ILMerge\SGI_92\HBT_FacturaElectronica.Entities.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Framework.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.EntitiesSGI.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Services.Contracts.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Business.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Data.dll /out:D:\ILMerge\HBT_FacturaElectronica.dll /target:dll /log:D:\ILMerge\logFEColombia.txt Set platform to 'v4', using directory 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8' for mscorlib.dll Running on Microsoft (R) .NET Framework v4.0.30319 mscorlib.dll version = 4.0.0.0 The list of input assemblies is: D:\ILMerge\SGI_92\HBT_FacturaElectronica.Entities.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Framework.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.EntitiesSGI.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Services.Contracts.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Business.dll D:\ILMerge\SGI_92\HBT_FacturaElectronica.Data.dll Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Entities.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Entities.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica.Entities's metadata. Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica's metadata. Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Framework.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Framework.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica.Framework's metadata. Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.EntitiesSGI.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.EntitiesSGI.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica.EntitiesSGI's metadata. Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Services.Contracts.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Services.Contracts.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica.Services.Contracts's metadata. Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Business.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Business.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica.Business's metadata. Trying to read assembly from the file 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Data.dll'. Can not find PDB file. Debug info will not be available for assembly 'D:\ILMerge\SGI_92\HBT_FacturaElectronica.Data.dll'. Successfully read in assembly. There were no errors reported in HBT_FacturaElectronica.Data's metadata. Checking to see that all of the input assemblies have a compatible PeKind. HBT_FacturaElectronica.Entities.PeKind = ILonly HBT_FacturaElectronica.PeKind = ILonly HBT_FacturaElectronica.Framework.PeKind = ILonly HBT_FacturaElectronica.EntitiesSGI.PeKind = ILonly HBT_FacturaElectronica.Services.Contracts.PeKind = ILonly HBT_FacturaElectronica.Business.PeKind = ILonly HBT_FacturaElectronica.Data.PeKind = ILonly All input assemblies have a compatible PeKind value. AssemblyResolver: Assembly 'HBT_FacturaElectronica.Entities' is referencing assembly 'System.Runtime.Serialization'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.Runtime.Serialization'. Resolved assembly reference 'System.Runtime.Serialization' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.Runtime.Serialization.dll'. (Used framework directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Entities' is referencing assembly 'System.Core'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.Core'. Resolved assembly reference 'System.Core' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.Core.dll'. (Used framework directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'ControlsSAP.Framework'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'ControlsSAP.Framework'. Resolved assembly reference 'ControlsSAP.Framework' to 'D:\ILMerge\SGI_92\ControlsSAP.Framework.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'ControlsSAP.AddOn.Core'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'ControlsSAP.AddOn.Core'. Resolved assembly reference 'ControlsSAP.AddOn.Core' to 'D:\ILMerge\SGI_92\ControlsSAP.AddOn.Core.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'DevExpress.XtraPdfViewer.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraPdfViewer.v19.2'. Resolved assembly reference 'DevExpress.XtraPdfViewer.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraPdfViewer.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'DevExpress.XtraPdfViewer.v19.2' is referencing assembly 'DevExpress.Utils.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Utils.v19.2'. Resolved assembly reference 'DevExpress.Utils.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.Utils.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'DevExpress.XtraPdfViewer.v19.2' is referencing assembly 'DevExpress.Data.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Data.v19.2'. Resolved assembly reference 'DevExpress.Data.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.Data.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'DevExpress.XtraPdfViewer.v19.2' is referencing assembly 'DevExpress.Pdf.v19.2.Core'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Pdf.v19.2.Core'. Resolved assembly reference 'DevExpress.Pdf.v19.2.Core' to 'D:\ILMerge\SGI_92\DevExpress.Pdf.v19.2.Core.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'DevExpress.XtraBars.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraBars.v19.2'. Resolved assembly reference 'DevExpress.XtraBars.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraBars.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'DevExpress.XtraBars.v19.2' is referencing assembly 'DevExpress.XtraEditors.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraEditors.v19.2'. Resolved assembly reference 'DevExpress.XtraEditors.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraEditors.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'Interop.SAPbobsCOM'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'Interop.SAPbobsCOM'. Resolved assembly reference 'Interop.SAPbobsCOM' to 'D:\ILMerge\SGI_92\Interop.SAPbobsCOM.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'DevExpress.XtraGrid.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraGrid.v19.2'. Resolved assembly reference 'DevExpress.XtraGrid.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraGrid.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'ControlsSAP.Framework' is referencing assembly 'Interop.SAPbouiCOM'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'Interop.SAPbouiCOM'. Resolved assembly reference 'Interop.SAPbouiCOM' to 'D:\ILMerge\SGI_92\Interop.SAPbouiCOM.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'Interop.SAPbouiCOM' is referencing assembly 'mscorlib'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'mscorlib'. Resolved assembly reference 'mscorlib' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\mscorlib.dll'. (Used framework directory.) AssemblyResolver: Assembly 'ControlsSAP.Framework' is referencing assembly 'DevExpress.Printing.v19.2.Core'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.Printing.v19.2.Core'. Resolved assembly reference 'DevExpress.Printing.v19.2.Core' to 'D:\ILMerge\SGI_92\DevExpress.Printing.v19.2.Core.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Framework' is referencing assembly 'ControlsSAP.Framework.v92'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'ControlsSAP.Framework.v92'. Resolved assembly reference 'ControlsSAP.Framework.v92' to 'D:\ILMerge\SGI_92\ControlsSAP.Framework.v92.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Framework' is referencing assembly 'System.ServiceModel'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.ServiceModel'. Resolved assembly reference 'System.ServiceModel' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.ServiceModel.dll'. (Used framework directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Business' is referencing assembly 'RestSharp'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'RestSharp'. Resolved assembly reference 'RestSharp' to 'D:\ILMerge\SGI_92\RestSharp.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Business' is referencing assembly 'Newtonsoft.Json'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'Newtonsoft.Json'. Resolved assembly reference 'Newtonsoft.Json' to 'D:\ILMerge\SGI_92\Newtonsoft.Json.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Data' is referencing assembly 'Microsoft.Practices.EnterpriseLibrary.Data'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'Microsoft.Practices.EnterpriseLibrary.Data'. Resolved assembly reference 'Microsoft.Practices.EnterpriseLibrary.Data' to 'D:\ILMerge\SGI_92\Microsoft.Practices.EnterpriseLibrary.Data.dll'. (Used referencing Module's directory.) Using assembly 'HBT_FacturaElectronica.Entities' for assembly-level attributes for the target assembly. Merging assembly 'HBT_FacturaElectronica.Entities' into target assembly. Merging assembly 'HBT_FacturaElectronica' into target assembly. Merging assembly 'HBT_FacturaElectronica.Framework' into target assembly. AssemblyResolver: Assembly 'ControlsSAP.Framework.v92' is referencing assembly 'Addon2Core'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) Merging assembly 'HBT_FacturaElectronica.EntitiesSGI' into target assembly. Duplicate type name: modifying name of the type 'SAPbobsCOM.Company' (from assembly 'HBT_FacturaElectronica.EntitiesSGI') to 'HBT_FacturaElectronica.EntitiesSGI.Company' Duplicate type name: modifying name of the type 'SAPbobsCOM.ICompany' (from assembly 'HBT_FacturaElectronica.EntitiesSGI') to 'HBT_FacturaElectronica.EntitiesSGI.ICompany' Duplicate type name: modifying name of the type 'SAPbobsCOM._ICompanyEvents' (from assembly 'HBT_FacturaElectronica.EntitiesSGI') to 'HBT_FacturaElectronica.EntitiesSGI._ICompanyEvents' Duplicate type name: modifying name of the type 'SAPbobsCOM._ICompanyEvents_Event' (from assembly 'HBT_FacturaElectronica.EntitiesSGI') to 'HBT_FacturaElectronica.EntitiesSGI._ICompanyEvents_Event' Merging assembly 'HBT_FacturaElectronica.Services.Contracts' into target assembly. Merging assembly 'HBT_FacturaElectronica.Business' into target assembly. Duplicate type name: modifying name of the type '' (from assembly 'HBT_FacturaElectronica.Business') to 'HBT_FacturaElectronica.Business.' Merging assembly 'HBT_FacturaElectronica.Data' into target assembly. Duplicate type name: modifying name of the type 'SAPbobsCOM.Company' (from assembly 'HBT_FacturaElectronica.Data') to 'HBT_FacturaElectronica.Data.Company' Duplicate type name: modifying name of the type 'SAPbobsCOM.ICompany' (from assembly 'HBT_FacturaElectronica.Data') to 'HBT_FacturaElectronica.Data.ICompany' Duplicate type name: modifying name of the type 'SAPbobsCOM._ICompanyEvents' (from assembly 'HBT_FacturaElectronica.Data') to 'HBT_FacturaElectronica.Data._ICompanyEvents' Duplicate type name: modifying name of the type 'SAPbobsCOM._ICompanyEvents_Event' (from assembly 'HBT_FacturaElectronica.Data') to 'HBT_FacturaElectronica.Data._ICompanyEvents_Event' Copying 1 Win32 Resources from assembly 'HBT_FacturaElectronica.Entities' into target assembly. There were no errors reported in the target assembly's metadata. ILMerge: Writing target assembly 'D:\ILMerge\HBT_FacturaElectronica.dll'. AssemblyResolver: Assembly 'ControlsSAP.AddOn.Core' is referencing assembly 'System.Data.DataSetExtensions'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.Data.DataSetExtensions'. Resolved assembly reference 'System.Data.DataSetExtensions' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.Data.DataSetExtensions.dll'. (Used framework directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Entities' is referencing assembly 'System.Configuration'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.Configuration'. Resolved assembly reference 'System.Configuration' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.Configuration.dll'. (Used framework directory.) AssemblyResolver: Assembly 'DevExpress.XtraPdfViewer.v19.2' is referencing assembly 'DevExpress.Pdf.v19.2.Drawing'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'HBT_FacturaElectronica' is referencing assembly 'System.Xml.Linq'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.Xml.Linq'. Resolved assembly reference 'System.Xml.Linq' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.Xml.Linq.dll'. (Used framework directory.) AssemblyResolver: Assembly 'DevExpress.XtraGrid.v19.2' is referencing assembly 'DevExpress.XtraLayout.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraLayout.v19.2'. Resolved assembly reference 'DevExpress.XtraLayout.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraLayout.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'DevExpress.XtraGrid.v19.2' is referencing assembly 'DevExpress.XtraPrinting.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraPrinting.v19.2'. Resolved assembly reference 'DevExpress.XtraPrinting.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraPrinting.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'ControlsSAP.Framework' is referencing assembly 'log4net'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'ControlsSAP.Framework' is referencing assembly 'DevExpress.XtraTreeList.v19.2'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'DevExpress.XtraTreeList.v19.2'. Resolved assembly reference 'DevExpress.XtraTreeList.v19.2' to 'D:\ILMerge\SGI_92\DevExpress.XtraTreeList.v19.2.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Framework' is referencing assembly 'Microsoft.CSharp'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'Microsoft.CSharp'. Resolved assembly reference 'Microsoft.CSharp' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\Microsoft.CSharp.dll'. (Used framework directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Business' is referencing assembly 'System.IO.Compression'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.IO.Compression'. Resolved assembly reference 'System.IO.Compression' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.IO.Compression.dll'. (Used framework directory.) AssemblyResolver: Assembly 'Newtonsoft.Json' is referencing assembly 'System.Numerics'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.Numerics'. Resolved assembly reference 'System.Numerics' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.Numerics.dll'. (Used framework directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Business' is referencing assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling'. Resolved assembly reference 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling' to 'D:\ILMerge\SGI_92\Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'System.ServiceModel' is referencing assembly 'System.Net.Http'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'System.Net.Http'. Resolved assembly reference 'System.Net.Http' to 'C:\Windows\Microsoft.NET\Framework64\v4.8\System.Net.Http.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'System.ServiceModel' is referencing assembly 'System.IdentityModel'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'System.IdentityModel'. Resolved assembly reference 'System.IdentityModel' to 'C:\Windows\Microsoft.NET\Framework64\v4.8\System.IdentityModel.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'System.ServiceModel' is referencing assembly 'System.IdentityModel.Selectors'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'System.IdentityModel.Selectors'. Resolved assembly reference 'System.IdentityModel.Selectors' to 'C:\Windows\Microsoft.NET\Framework64\v4.8\System.IdentityModel.Selectors.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Business' is referencing assembly 'System.IO.Compression.FileSystem'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. Can not find PDB file. Debug info will not be available for assembly 'System.IO.Compression.FileSystem'. Resolved assembly reference 'System.IO.Compression.FileSystem' to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319..\v4.8\System.IO.Compression.FileSystem.dll'. (Used framework directory.) AssemblyResolver: Assembly 'System.IO.Compression.FileSystem' is referencing assembly 'System.IO.Compression'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'System.IO.Compression'. Resolved assembly reference 'System.IO.Compression' to 'C:\Windows\Microsoft.NET\Framework64\v4.8\System.IO.Compression.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Data' is referencing assembly 'CrystalDecisions.CrystalReports.Engine'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'CrystalDecisions.CrystalReports.Engine'. Resolved assembly reference 'CrystalDecisions.CrystalReports.Engine' to 'D:\ILMerge\SGI_92\CrystalDecisions.CrystalReports.Engine.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'HBT_FacturaElectronica.Data' is referencing assembly 'CrystalDecisions.Shared'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'CrystalDecisions.Shared'. Resolved assembly reference 'CrystalDecisions.Shared' to 'D:\ILMerge\SGI_92\CrystalDecisions.Shared.dll'. (Used referencing Module's directory.) AssemblyResolver: Assembly 'CrystalDecisions.CrystalReports.Engine' is referencing assembly 'CrystalDecisions.ReportAppServer.DataDefModel'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'CrystalDecisions.CrystalReports.Engine' is referencing assembly 'CrystalDecisions.ReportAppServer.CommLayer'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'CrystalDecisions.CrystalReports.Engine' is referencing assembly 'CrystalDecisions.ReportAppServer.ClientDoc'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'CrystalDecisions.CrystalReports.Engine' is referencing assembly 'CrystalDecisions.ReportAppServer.Controllers'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'CrystalDecisions.Shared' is referencing assembly 'log4net'. AssemblyResolver: Attempting referencing assembly's directory. AssemblyResolver: Did not find assembly in referencing assembly's directory. AssemblyResolver: Attempting input directory. AssemblyResolver: Did not find assembly in input directory. AssemblyResolver: Attempting user-supplied directories. AssemblyResolver: No user-supplied directories. AssemblyResolver: Attempting framework directory. AssemblyResolver: Did not find assembly in framework directory. AssemblyResolver: Unable to resolve reference. (It still might be found, e.g., in the GAC.) AssemblyResolver: Assembly 'System.Data' is referencing assembly 'System.Transactions'. AssemblyResolver: Attempting referencing assembly's directory. Can not find PDB file. Debug info will not be available for assembly 'System.Transactions'. Resolved assembly reference 'System.Transactions' to 'C:\Windows\Microsoft.NET\Framework64\v4.8\System.Transactions.dll'. (Used referencing Module's directory.) The assembly 'HBT_FacturaElectronica.Entities' was not merged in correctly. It is still listed as an external reference in the target assembly. An exception occurred during merging: ILMerge.Merge: The assembly 'HBT_FacturaElectronica.Entities' was not merged in correctly. It is still listed as an external reference in the target assembly. en ILMerging.ILMerge.Merge() en D:\Documentos\ILMerge-master\ILMerge\ILMerge.cs:línea 2002 en ILMerging.ILMerge.Main(String[] args) en D:\Documentos\ILMerge-master\ILMerge\ILMerge.cs:línea 2931

mike-barnett commented 4 years ago

Thanks. Do you know if any of your input assemblies are using embedded interop types? If possible, run ILMerge on just the one input assembly 'HBT_FacturalElectronica.Entities' and see if you get the same error message. Then, use ildasm to dump the output assembly ('ildasm /out:foo.il HBT_FacturalElectronica.dll') and then in a text editor look for the string '[HBT_FacturaElectronica.Entities]' and let me know what the IL looks like that has that string somewhere in the instruction.

Thanks!