yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.63k forks source link

Global rules are never saved by GUI #56

Closed augiem closed 10 years ago

augiem commented 10 years ago

Rules created for specific modules are saved, however rules created for "Global setting" in the ConfuserEx GUI are never saved.

yck1509 commented 10 years ago

I just tried and the global setting is saved. How do you create and save the setting?

augiem commented 10 years ago

Hi, thanks for replying! And thanks so much for making the other two changes! :)

Here are my steps and the resulting save files:

1) Create new project 2) Set base directory 3) Choose a DLL 4) Go to global settings and create a rule, Anti idasm 5) Save project 6) Open project

The global rule is missing. Checking the source:

(Sorry, I had to change the LT and GT symbols to brackets because it kept stripping them. Tried ... but it didn't preserve them.)

[project outputDir="E:\Download\Utils\DevTools\ConfuserEx_bin\New folder (2)\Confused" baseDir="E:\Download\Utils\DevTools\ConfuserEx_bin\New folder (2)" xmlns="http://confuser.codeplex.com"] [module path="library.dll" /] [/project]

Repeating the steps above, this time making the rule on the module itself:

[project outputDir="E:\Download\Utils\DevTools\ConfuserEx_bin\New folder (2)\Confused" baseDir="E:\Download\Utils\DevTools\ConfuserEx_bin\New folder (2)" xmlns="http://confuser.codeplex.com"] [module path="library.dll"] [rule pattern="true" inherit="false"] [protection id="anti ildasm" /] [/rule] [/module] [/project]

yck1509 commented 10 years ago

Oddly the global setting does get saved here. This is what I do:

  1. Fill in the base directory box.
  2. Drag and drop a dll on the module list.
  3. Select 'Settings' tab and select '' item.
  4. Click + button and click the edit button.
  5. Click + button, select 'anti ildasm', and click 'Done' button
  6. Click 'Save Project'

This saves the global setting for me. Does it work for you?

BTW, you can enter < and > by escaping them, like \<. Alternately you can enclose them in a code block using ` and it will preserve the symbols.

augiem commented 10 years ago

Hi, thanks for the help and the tips!

Those are the exact steps I followed. But I found the problem... User error. >_< I was doing all this with the 0.2.1 binary, so I decided to download the master and try it. It works as does the latest binary 0.2.3. It seems I downloaded the 0.2.1 the day before you released 0.2.2 on Jul 3. I've been extremely busy the past month trying to finish my project and I didn't realize that much time had passed since I downloaded ConfuserEx. Sorry for taking up your time and thank you for a great piece of software and being so helpful!