最近,我在VisualStudio2015Update 3中使用Dotfuscator混淆了一个DLL。下面是我使用的Dotfuscator.xml文件。
<?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 :困惑之后的错误“,但它似乎既不完整,也不健壮,尽管我也在这里发表了我的评论,但在这里,我希望有第二种意见和更健壮的解决方案,而不是将我的设置文件文本重命名为模糊名称(正如上面提到的)。
发布于 2017-02-14 13:51:48
您应该从重命名中排除My.Settings。这样做的说明在医生们中。
https://stackoverflow.com/questions/42222308
复制相似问题