-1

我的配置

<?xml version='1.0'?>
<Obfuscator>
    <Var name="InPath" value="$(InPath)" />
    <Var name="OutPath" value="$(InPath)\Obfuscar" />
    <Var name="KeepPublicApi" value="false" />
    <Var name="HidePrivateApi" value="true" />
    <Var name="RenameProperties" value="true" />
    <Var name="RenameEvents" value="true" />
    <Var name="RenameFields" value="true" />
    <Var name="UseUnicodeNames" value="true" />
    <Var name="HideStrings" value="true" />
    <Var name="OptimizeMethods" value="true" />
    <Var name="SuppressIldasm" value="true" />
    <Module file="$(InPath)\*.dll" />
    <Module file="$(InPath)\*.exe" />
</Obfuscator>

我的后期构建活动

if $(ConfigurationName) == Release “$(Obfuscar)” obfuscar.xml

构建输出

2>MYApplication -> D:\MYServer\MYApp\bin\Release\net5.0-windows\MYServer.dll 2>文件名、目录名或卷标语法不正确。2>D:\MYServer\MYApp\MYApplication.csproj(23,5): error MSB3073: The command "if Release == Release "C:\Users\VVSCPP.nuget\packages\obfuscar\2.2.31\build.. \tools\Obfuscar.Console.exe” obfuscar.xml” 退出,代码为 123。 2>完成构建项目“MYApplication.csproj”——失败。

4

1 回答 1

0
于 2021-09-17T02:55:05.957 回答