按照PreEmptive Website所述设置所有要求后,尝试保护android xamarin.forms项目 当我尝试构建时,我完成了此错误:
命令““ C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ Enterprise \ Common7 \ IDE \ Extensions \ PreEmptiveSolutions \ DotfuscatorCE” / p:InDir =“ obj \ Release \ 90 \ DotfuscatorXamarin \ dfin” ,OutDir =“ obj \ Release \ 90 \ DotfuscatorXamarin \ dfout”,ReportDir =“ DotfuscatorReports \ Release”“ DotfuscatorConfig.xml”“退出,代码为9009。
答案 0 :(得分:1)
首先感谢Joe,在增加了详细程度之后,在构建输出中很清楚如何解决它: -在项目文件(我想用Dotfuscator保护)中,有一个称为的属性,我将其值设置为dotfuscatorCLI文件的路径(根据属性名称的要求)。一种简单的解决方案是将 CLI文件名添加到路径的末尾,并且所有操作均正确无误。
旧的属性值为:
<DotfuscatorXamarinCliPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE</DotfuscatorXamarinCliPath>
我将其更改为:
<DotfuscatorXamarinCliPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE\dotfuscatorCLI.exe</DotfuscatorXamarinCliPath>
定义问题的构建输出如下:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE"' is not recognized as an internal or external command,operable program or batch file.