我已经使用R.Gieseckes UnmanagedExports动态链接库使用导出的方法完成了一个程序集。在VS 2012中构建此程序集非常有效。但是,使用FinalBuilder构建程序集作为更大解决方案的一部分会引发以下错误:
解析IL:解析1517行IL需要120 ms。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提供程序,String格式,Object[] args) bei System.String.Format(IFormatProvider提供程序,String格式,Object[] args) bei RGiesecke.DllExport.DllExportNotifier.Notify(Int32严重性,String代码,String fileName,Nullable
1 startPosition, Nullable
1 endPosition,String message,Object[]值)。RGiesecke.DllExport.DllExportNotifier.Notify(Int32严重性、字符串代码、字符串消息、Object[]值)在d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportNotifier.cs:Zeile 119中。bei RGiesecke.DllExport.Parsing.IlAsm.RunLibTool(CpuPlatform cpu,字符串fileName,字符串目录)在d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 212中。RGiesecke.DllExport.Parsing.IlAsm.RunCore(CpuPlatform cpu,d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 186中的字符串fileName,字符串ressourceParam,字符串ilSuffix)。d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\Parsing\ILAsm.cs:Zeile 123中的bei 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中。( RGiesecke.DllExport.DllExportWeaver.RunIlAsm(IlAsm ilAsm)在d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportWeaver.cs:Zeile 151。d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport\DllExportWeaver.cs:Zeile 81中的bei RGiesecke.DllExport.DllExportWeaver.Run()。bei RGiesecke.DllExport.MSBuild.ExportTaskImplementation`1.Execute() in d:\Work\Libraries\RGiesecke.DllExport\RGiesecke.DllExport.MSBuild\ExportTaskImplementation.cs:Zeile 243.
有人见过这个吗?有什么暗示吗?
问候
发布于 2013-12-13 23:19:37
我所能想到的是收集组件的核心包没有加载,已经在项目引用中更新了,或者存在CPU体系结构x86/x64复杂。
看起来您有d:\Work\Libraries\和C:\BuildSource\分支\目录的组合,而且您的项目文件中可能有一些意外的链接,这些链接被硬编码到不同的目录,而不是使用相对引用。查看*.*proj文件并提示路径。
有时,我在build目录中打开VS解决方案,并检查编译问题。确保每次使用一个干净的构建目录。试着在一台非开发机器上运行Finalbuilder,看看您可以如何构建它。我发现我有很多隐式链接,所以我必须升级我的存储库来包含它们,或者在构建解决方案之前使用Nugget操作。
https://stackoverflow.com/questions/20571493
复制相似问题