Act*_*onJ 4 .net msbuild ilmerge build
是否有人与IlMerge有这个错误?我正在尝试使用4.0 Framework为.NET项目合并一些程序集.
ILMerge/log /lib:...Libraries/targetplatform:v4 /internalize:..\SolutionFiles\CJCommon.exclude/ndebug /out:bin\Release\Common.dll obj\Release\Common.dll C:\ Development\CJCommon\Libraries\FluentNHibernate.dll C:\ Development\CJCommon\Libraries\HibernatingRhinos.Profiler.Appender.dll C:\ Development\CJCommon\Libraries\Iesi.Collections.dll C:\ Development\CJCommon\Libraries\log4net.dll C:\Development\CJCommon\Libraries\Microsoft.Practices.ServiceLocation.dll C:\ Development\CJCommon\Libraries\NHibernate.ByteCode.Castle.dll C:\ Development\CJCommon\Libraries\NHibernate.dll C:\ Development\CJCommon\Libraries\NHibernate.Linq.dll C:\ Development\CJCommon\Libraries\StructureMap.dll
将平台设置为'v4',使用目录'C:\ Windows\Microsoft.NET\Framework64\v2.0.50727 ..\v4.0.20107'for mscorlib.dll
合并期间发生异常:
你调用的对象是空的.
at System.Compiler.CoreSystemTypes.GetSystemAssembly(Boolean doNotLockFile, Boolean getDebugInfo)
at System.Compiler.CoreSystemTypes.Initialize(Boolean doNotLockFile, Boolean getDebugInfo)
at System.Compiler.SystemTypes.Initialize(Boolean doNotLockFile, Boolean getDebugInfo)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)
Run Code Online (Sandbox Code Playgroud)
C:\ Program Files(x86)\ MSBuild\Ilmerge.CSharp.targets(8,5):错误MSB3073:命令""C:\ Program Files(x86)\ Microsoft\Ilmerge\Ilmerge.exe"/ log/lib :"..\Libraries"/ targetplatform:v4 /internalize:./.exited代码1 ...
...
==========重建全部:3成功,1失败,0跳过==========
xof*_*ofz 11
在targetplatform中包含4.0 Framework的路径,并确保使用引号.例如,来自PowerShell:
.\ILMerge /out:Merged.dll /targetplatform:'v4,C:\Windows\Microsoft.NET\Framework\v4.0.30319' .\Assembly1.dll .\Assembly2.dll
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7471 次 |
| 最近记录: |