radtek / obfuscar

Automatically exported from code.google.com/p/obfuscar
0 stars 0 forks source link

Signed assemblies without their declaration in Assembly.cs can't be resigned #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the sample project
2. Try to build using Release.proj (Modified to compile the signed vanilla 
project)

What is the expected output? What do you see instead?

The exe file compiled should be obfuscated.

Instead, an error is occuring during obfuscation :

  An error occurred during processing:
  Obfuscating a signed assembly would result in an invalid assembly:  VanillaProjectForStyleFix; use the KeyValue property to set a key to use

What version of the product are you using? On what operating system?
Obfuscar 1.5.4, Windows XP, .Net 3.5SP1

Please provide any additional information below.

More information on what i've done on the sample project :

Created an hello world project.
Signed him in the property project (Not in Assembly.cs).

Added the variable FileName on obfuscar.xml (two places have been tried : 
Inside Module tag (obfuscar.xml), and at the end of Obfuscar.xml 
(obfuscar2.xml))

Original issue reported on code.google.com by leveque....@gmail.com on 16 Jul 2010 at 1:00

Attachments:

GoogleCodeExporter commented 9 years ago
I checked the sample project you posted.

The KeyFile variable in obfuscar.xml is a global setting. You mistakenly put it 
below the <Module> element where it is not used by Obfuscar. (Although there 
might be cases where it would make sense to have a way to specify different key 
files per assembly)

Original comment by webbi...@gmail.com on 17 Jul 2010 at 10:25

GoogleCodeExporter commented 9 years ago
Sorry, I missed that you already tried (in obfuscar2.xml) to put the KeyFile 
variable at the end of the file.
But this does not work. Please put <Var> directives before any <Module> 
directives.

Original comment by webbi...@gmail.com on 17 Jul 2010 at 10:31

GoogleCodeExporter commented 9 years ago
It seems to solve the problem on the sample project.

I will try on monday, with our product. 

Thanks

Original comment by leveque....@gmail.com on 18 Jul 2010 at 10:51

GoogleCodeExporter commented 9 years ago
Perhaps it should be useful to specify Var tags have to be put before any 
module in the Wiki Configuration section.

Original comment by leveque....@gmail.com on 18 Jul 2010 at 10:53

GoogleCodeExporter commented 9 years ago
It also worked with our product.

For me the issue is closed.

Thanks

Original comment by leveque....@gmail.com on 19 Jul 2010 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by webbi...@gmail.com on 26 Aug 2010 at 9:03