我最近使用Dotfuscator CE对Visual Studio 2015 Update 3进行了混淆。下面是我使用的Dotfuscator.xml文件。从Settings.settings文件读取混淆后
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE dotfuscator SYSTEM "http://www.preemptive.com/dotfuscator/dtd/dotfuscator_v2.3.dtd">
<dotfuscator version="2.3">
<propertylist>
<property name="SourceDirectory" value="This Path Will Be Replaced By Visual Studio" />
<property name="SourceFile" value="This Filename Will Be Replaced By Visual Studio" />
</propertylist>
<input>
<asmlist>
<inputassembly>
<option>library</option>
<file dir="${SourceDirectory}\" name="${SourceFile}" />
</inputassembly>
</asmlist>
</input>
<output>
<file dir="${SourceDirectory}\" />
</output>
</dotfuscator>
现在问题是,混淆的程序集包含一些存储在Settings.settings中的信息。文件,当我的代码尝试访问设置文件中的数据时,会出现以下异常。
设置属性“ProxyTestURL”未找到
下面是语法阅读设置:
Dim strURI As String = My.Settings.ProxyTestURL
我知道有一个类似的问题“Dotfuscator的错误:混淆后”但它似乎并不完整或强大,虽然我也在那里发表我的评论,但在这里我期望第二个意见和更强大的解决方案,而不是将我的设置文件文字重命名为混淆名称(如上所述)。
对于任何人看,他提到的另一个问题是在http://stackoverflow.com/questions/17215726/dotfuscator-error-after-obfuscation –