使用FinalBuilder生成部件时出现非托管导出错误

本文关键字:错误 出错 FinalBuilder 成部 使用 | 更新日期: 2024-09-27 01:59:57

我已经使用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 or gleich null sein,und kleiner als die grß。bei系统。文本StringBuilder。AppendFormat(IFormatProvider提供程序,字符串格式,Object[]参数)bei系统。一串Format(IFormatProvider提供程序,字符串格式,Object[]参数)bei RGiesecke。DllExport。DllExportNotifier。在d:''Work''Libraries''RGiesecke中通知(Int32严重性、字符串代码、字符串文件名、可为null的1 startPosition, Nullable 1 endPosition、字符串消息、Object[]值)。DllExport''RGiesecke。DllExport''DllExportNotifier.cs:Zeile 135。bei RGiesecke。DllExport。DllExportNotifier。在d:''Work''Libraries''RGiesecke中通知(Int32严重性、字符串代码、字符串消息、Object[]值)。DllExport''RGiesecke。DllExport''DllExportNotifier.cs:Zeile 119。bei RGiesecke。DllExport。正在分析。IlAsm。在d:''Work''Libraries''RGiesecke中运行LibTool(CpuPlatform cpu,String fileName,String目录)。DllExport''RGiesecke。DllExport''Passing''ILAsm.cs:Zeile 212。bei RGiesecke。DllExport。正在分析。IlAsm。d:''Work''Libraries''RGiesecke中的RunCore(CpuPlatform cpu、字符串fileName、字符串资源参数、字符串ilSuffix)。DllExport''RGiesecke。DllExport''Passing''ILAsm.cs:Zeile 186。bei RGiesecke。DllExport。正在分析。IlAsm。在d:''Work''Libraries''RGiesecke中运行(String outputFile,String ilSuffix,CpuPlatform cpu)。DllExport''RGiesecke。DllExport''Passing''ILAsm.cs:Zeile 123。bei RGiesecke。DllExport。正在分析。IlAsm。d:''Work''Libraries''RGiesecke中的重新组装文件(String outputFile,String ilSuffix,CpuPlatform cpu)。DllExport''RGiesecke。DllExport''Passing''ILAsm.cs:Zeile 75。bei RGiesecke。DllExport。DllExportWeaver。在d:''Work''Libraries''RGiesecke中运行IlAsm(IlAsm-IlAsm)。DllExport''RGiesecke。DllExport''DllExportWeaver.cs:Zeile 151。bei RGiesecke。DllExport。DllExportWeaver。在d:''Work''Libraries''RGiesecke中运行()。DllExport''RGiesecke。DllExport''DllExportWeaver.cs:Zeile 81。bei RGiesecke。DllExport。MSBuild。在d:''Work''Libraries''RGiesecke中导出任务实现`1.Execute()。DllExport''RGiesecke。DllExport。MSBuild''ExportTaskImplementation.cs:Zeile 243。

有人见过这个吗?有什么提示吗?

问候

使用FinalBuilder生成部件时出现非托管导出错误

我所能想到的是,收集组件的金块包没有加载,已经在项目参考中更新,或者CPU架构x86/x64复杂。

看起来您有d:''Work''Libraries''和C:''BuildSource''branchs''目录的组合,并且您的项目文件中可能有意外的链接,这些链接被硬编码到不同的目录,而不是使用相对引用。查看*.*proj文件和提示路径。

有时我会打开构建目录中的VS解决方案,检查编译问题。确保每次都使用一个干净的生成目录。试着在非开发机器上运行Finalbuilder,看看你能把它构建得有多好。我发现我有很多隐含的链接,所以我必须升级我的存储库以包含它们,或者在构建解决方案之前使用Nugget操作。

相关文章: