简体   繁体   English

在C#项目中使用混淆的dll作为参考

[英]Use Obfuscated dll as reference in c# project

For confidentiality reasons I need to create a solution which will use several obfuscated DLL (obfuscated with ConfuseEx) for consultants. 出于保密的原因,我需要创建一个解决方案,该解决方案将使用多个混淆的DLL(被ConfuseEx混淆)作为顾问。

I've referenced the dll in my project but when I try to use public elements of my obfuscated dll in code, visual studio static code analysis mark those in red with the following error: "Cannot resolve symbol '[ClassName]'". 我已经在项目中引用了该dll,但是当我尝试在代码中使用混淆的dll的公共元素时,Visual Studio静态代码分析将其标记为红色,并显示以下错误:“无法解析符号'[ClassName]'”。

When I build and run the project it works fine 当我构建并运行项目时,它运行良好

It is not very convenient to code without code completion an without any information about the dll. 没有代码完成和没有有关dll的任何信息进行编码不是很方便。 How can I do to use the obfuscated dll like every other dll in visual studio with object recognition 我该如何像使用对象识别的Visual Studio中的其他所有dll一样使用混淆的dll

PS: the object viewer works fine on the dll and display correctly public elements. PS:对象查看器可以在dll上正常工作,并可以正确显示公共元素。

Thanks! 谢谢!

Obfuscation should be done after build. 构建后应进行混淆。 Because an Obfuscator randomizes names 因为混淆器将名称随机化

With the open source confuser tool you can disable Name confusion 使用开源的confuser工具,您可以禁用名称混淆

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM