Dotfuscator:混淆后出错 [英] Dotfuscator : Error after obfuscation
问题描述
我正在使用dotfuscator来混淆我的vb.net应用程序(myapp.exe).但是我在运行混淆文件时遇到错误.
I am using dotfuscator to obfuscate my vb.net application(myapp.exe). But i am getting error while running the obfuscated file.
下面是我打开被混淆的exe时的错误.
Below is the error when i open the exe which is obfuscated.
未找到设置属性导入".ImportSetting"
"The settings property 'Import' was not found. ImportSetting"
我的应用程序使用.config(myapp.exe.config)文件,其设置如下所示
My application uses .config(myapp.exe.config) file which has setting like below
<userSettings>
<myapp.My.MySettings>
<setting name="Import" serializeAs="String">
<value>True</value>
</setting>
</myapp.My.MySettings>
</userSettings>
如果我不混淆,则应用程序可以正常工作.仅当我混淆了我的应用程序时,该错误才会出现.
If i don't obfuscate then application works fine. The error comes only if i obfuscate the my application.
我在混淆过程中遵循的程序:
Procedure i follow during obfuscation:
首先我打开在dotfuscator中创建新项目.
First i open create new project in dotfuscator.
在添加输入程序集中,我从项目的bin文件夹中添加了myapp.exe和myapp.vshost.exe文件.
In add input assembly i add myapp.exe and myapp.vshost.exe file from the bin folder of my project.
在构建菜单中,我选择目标目录,然后单击构建.
In build menu i select destination directory and click on build.
现在将生成我将使用的混淆文件.
Now obfuscated file will be generated which i will use.
所以请帮助我解决此错误.
So please help me to solve this error.
推荐答案
请注意,运行混淆器将重命名所有内容以隐藏其用途.参见此处 http://msdn.microsoft.com/en-US/library/ms227212(v=vs.80).aspx .
Note that running the obfuscator will rename everything to hide it's purpose. See here, http://msdn.microsoft.com/en-US/library/ms227212(v=vs.80).aspx.
我的猜测是,您的<myapp.My.Settings>
必须更改为混淆后的名称.我不确定您如何确定.
My guess is that your <myapp.My.Settings>
would have to be changed to the obfuscated name. I'm not sure how you would determine that however.
看起来dotfuscator输出了一个map.xml文件,该文件指定了所有已重命名的东西.您应该能够查找myapp
并查看其重命名后的内容,然后更新.config文件.
It looks like dotfuscator outputs a map.xml file that specifies all the stuff that was renamed. You should be able to lookup myapp
and see what it got renamed to, then update the .config file.
这篇关于Dotfuscator:混淆后出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!