How to install and use obfuscar?

前端 未结 5 464
情深已故
情深已故 2020-12-23 15:28

I just finished my C# project(WPF), but now I meet problems on using \"obfuscar\" (another applicaion would be welcome, if easier to use).

Of course I looked already

5条回答
  •  执笔经年
    2020-12-23 15:33

    I set this up to run on the Post Build event in Visual Studio.

    1. Add Obfuscar NuGet Package to your solution.
    2. Add obfuscar.xml file to your project and change Copy to Output Directory: Always. See the post on this thread by vinsa for an XML sample. I had to include the full path to my project in "InPath" variable. Then the obfucasted folder was under bin/[debug / release].

    3. In the Visual Studio post build events enter: "$(Obfuscar)" obfuscar.xml

提交回复
热议问题