我正在使用 FileHelpers.dll (v3.0.2.0) 来解析分隔文件。它在我的开发机器上工作正常,但在开发服务器上它在这个 LOC 上失败
var cb = new DelimitedClassBuilder("Delimited", delimiter);
// Do stuff, add fields, etc
Type cls = cb.CreateRecordClass(); // <<<<< This fails on the dev server only
var engine = new FileHelpers.FileHelperEngine(cls);
例外:
Error Compiling Expression: Line 0: An assembly with the same simple name 'Modules.CSV, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of the references or sign them to enable side-by-side.
我不明白为什么我没有得到同样的错误?
有什么建议么?