我正在使用 Eazfuscator 3.3(免费版),我可以混淆我的所有项目除了一个(在特定解决方案中)。
这是我遇到的错误:
Error 16 Error occurred during processing of input file 'DAL.dll' --> One or more errors occurred --> Index was out of range. Must be non-negative and less than the size of the collection.
C:\Projects______DAL\EXEC ___DAL
我试过手动运行:
C:\Program Files (x86)\Eazfuscator.NET\Eazfuscator.NET.exe "C:\Projects\________\______DAL\bin\Release\______DAL.dll" --msbuild-project-path "C:\Projects\______\______DAL\______DAL.csproj" --msbuild-project-configuration "Release" --msbuild-project-platform "AnyCPU" --msbuild-solution-path "C:\Projects\______\______.sln" -n --newline-flush -v 3.3"
但我得到了相同的结果。
我什至试过这个:
C:\Program Files (x86)\Eazfuscator.NET>Eazfuscator.NET.exe "C:\Projects\_______\_______DAL\bin\Release\________DAL.dll"
但是,如您所见 - 我得到了相同的结果:
Eazfuscator.NET Version 3.3 (Release build 3.3.161.40493) Copyright (C) 2007-2012 Oleksiy Gapotchenko
Obfuscating assembly '___DAL.dll'...Error: Error occurred during processing of input file ''_____DAL.dll' --> One or more errors occurred --> Index was out of range. Must be non-negative and less than the size of the collection.
我觉得它的发生是因为我的引用 - FluentNHibernate.dll (1.2.0.712)、NHibernate.dll (3.1.0.4000)、 NHibernate.ByteCode.CaSTLe.dll (3.1.0.4000).
最佳答案
这是一个已知问题,已在最新版本的 Eazfuscator.NET 中修复。
有一个快速的解决方法:
[assembly: Obfuscation(Feature = "optimization", Exclude = true)]
请将上面显示的属性应用于有关程序集。这将关闭 Eazfuscator.NET 优化器。
关于c# - Eazfuscator.NET 出现一个或多个错误 --> 索引超出范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14017827/