【发布时间】:2018-01-04 19:03:53
【问题描述】:
我正在尝试将 Dotfuscator 社区版与 Visual Studio 2017 一起使用来构建 Xamarin for Android 应用程序。 Visual Studio 输出给了我错误:
1>C:\xp\XamarinForms\XamarinForms\XamarinForms.Android\PreEmptive.Dotfuscator.Xamarin.targets(347,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE\dotfuscatorCLI.exe" /p:InDir="obj\Release\DotfuscatorXamarin\dfin",OutDir="obj\Release\DotfuscatorXamarin\dfout",ReportDir="DotfuscatorReports\Release" "DotfuscatorConfig.xml"" exited with code 1.
当我使用 cmd.exe 运行该命令时,我有以下输出:
[Build Output] Resolving method references...
[Build Output] Analyzing Markup...
[Build Output] Value cannot be null.
Parameter name: key
[Build Output] Build Error.
我在 Dotfuscator GUI 应用程序中打开了 DotfuscatorConfig.xml 并尝试更改一些选项。 在我在重命名->选项->启用重命名中禁用重命名后,构建成功,但如果不重命名,它会使混淆变得毫无意义。
你能帮我找出这个问题的确切原因以及如何解决它吗?
【问题讨论】:
-
这将是 PreEmptive Solutions 最能提供帮助的事情,因为他们的产品和 CLI 工具出现了故障。是否有办法增加此 CLI 的详细程度可能值得一看。
-
好奇...在您“禁用”重命名之前和之后,DotfuscatorConfig.xml 中的
部分是什么样的?我没有玩过他们的 GUI——宁愿设置 XML。对我来说,这听起来像是他们的 GUI 中的一个错误。 -
@JonDouglas 作为参考,您可以通过命令行开关
/v或by setting the Build output verbosity of the config file to Verbose 增加Dotfuscator 的详细程度。 -
谢谢@JoeSewell 我想会有这样的选择。
标签: windows xamarin xamarin.android visual-studio-2017 dotfuscator