【发布时间】:2013-12-13 16:38:11
【问题描述】:
我使用 R. Gieseckes UnmanagedExports dll 完成了一个带有导出方法的程序集。在 VS 2012 中构建这个程序集效果很好。但是将程序集构建为 使用 FinalBuilder 的更大解决方案会引发以下错误:
解析 IL:解析 1517 行 IL 耗时 120 毫秒。 C:\BuildSource\branches\Standard\Projects\Intf_New\Interfaces\StdInterface\packages\UnmanagedExports.1.2.4.23262\tools\RGiesecke.DllExport.targets(42,5):错误:Der Index,basierend auf 0 (null), muss größer als oder gleich Null sein, und kleiner als die Größe der Argumentenliste。 bei System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) bei System.String.Format(IFormatProvider provider, String format, Object[] args) bei RGiesecke.DllExport.DllExportNotifier.Notify(Int32 严重性,字符串代码,字符串文件名,Nullable
1 startPosition, Nullable1 endPosition,字符串消息,Object[] 值)在 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportNotifier .cs:泽勒 135。 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportNotifier.cs:Zeile 119 中的 RGiesecke.DllExport.DllExportNotifier.Notify(Int32 严重性,字符串代码,字符串消息,Object[] 值)。 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 中的 RGiesecke.DllExport.Parsing.IlAsm.RunLibTool(CpuPlatform cpu, String fileName, String directory)。 bei RGiesecke.DllExport.Parsing.IlAsm.RunCore(CpuPlatform cpu, String fileName, String ressourceParam, String ilSuffix) 在 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 186。 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 中的 RGiesecke.DllExport.Parsing.IlAsm.Run(String outputFile, String ilSuffix, CpuPlatform cpu)。 bei RGiesecke.DllExport.Parsing.IlAsm.ReassembleFile(String outputFile, String ilSuffix, CpuPlatform cpu) 在 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 75。 位于 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportWeaver.cs:Zeile 151 中的 RGiesecke.DllExport.DllExportWeaver.RunIlAsm(IlAsm ilAsm)。 d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportWeaver.cs:Zeile 81 中的 RGiesecke.DllExport.DllExportWeaver.Run()。 bei RGiesecke.DllExport.MSBuild.ExportTaskImplementation`1.Execute() in d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:Zeile 243。
有人看过这个吗?有什么提示吗?
问候
【问题讨论】:
-
在您的解决方案中右键单击 + 启用 nuget 包更新。因此,msbuild 将在最终构建器运行期间执行此操作
标签: c# build msbuild unmanaged finalbuilder