我正在尝试将两个程序集合并为一个程序集,它运行良好。然而,当我也尝试合并 *.pdb 文件时,出现错误:
拒绝访问路径“F:\Fentec\Businessplan\trunk\Ausgabe\Debug\modules\Planrechnung\Planrechnung.pdb”。
如果我使用 /ndebug 选项来跳过合并 *.pdb 文件,它可以正常工作。但是,调试时当然不能加载符号。起初我以为在 postbuild 事件中调用 ILMerge 时,Planrechung.pdb 正在使用并被锁定。我还尝试关闭 VS2010 并从命令行调用 ILMerge,但结果保持不变。我检查了 ProcessExplorer 并且文件上没有句柄。
这就是我所说的ILMerge:
E:\XP\Tools\ILMerge\ilmerge /targetplatform:v4,"D:\WINDOWS\Microsoft.NET\Framework\v4.0.30319" /lib:"F:\Fentec\Businessplan\trunk\Ausgabe\Debug\bin" /out:Planrechnung.dll "F:\Fentec\Businessplan\trunk\Ausgabe\Debug\modules\Planrechnung\Planrechnung.dll" "F:\Fentec\Businessplan\trunk\Ausgabe\Debug\modules\Mandantenverwaltung\Mandantenverwaltung.dll"
我错过了什么吗?如果您需要任何其他信息,请询问。
问候,
斯卡利