christopherdebow1 / obfuscar

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

Obfuscar crashes when obfuscating delay-signed assemblies #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an assembly in C#
2. Set the following in AssemblyInfo.cs:

[assembly: AssemblyKeyFileAttribute(@"..\..\..\publickey.snk")]
[assembly: AssemblyDelaySignAttribute(true)]

3. Run obfuscar on the resulting binary

What is the expected output? 
The obfuscated binary which I can then sign with the private key.

What do you see instead?

Obfuscar crashes. 
Here is the output:

Loading project...Loading assemblies...Done.
Renaming: 
fields...parameters...properties...events...methods...types...hiding strings...
Done.
Saving assemblies...
Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: rsa
   at Mono.Security.StrongName..ctor(RSA rsa)
   at Obfuscar.Obfuscator.SaveAssemblies()
   at Obfuscar.Program.Main(String[] args)

What version of the product are you using? On what operating system?

Win XP, SP3.
Obfuscar version: I have no idea, I think 1.5, how do I find out...?

Please provide any additional information below.

Original issue reported on code.google.com by radun...@gmail.com on 26 Feb 2010 at 4:24

GoogleCodeExporter commented 8 years ago
To clarify, I was following the instructions outlined here:
http://msdn.microsoft.com/en-us/library/ms227311.aspx

Original comment by radun...@gmail.com on 26 Feb 2010 at 4:33

GoogleCodeExporter commented 8 years ago
With version 1.5.4 this should be fixed for delay signed assemblies.

Please check the bottom of http://code.google.com/p/obfuscar/wiki/Configuration 
for
the signing behavior of this new version.

Original comment by webbi...@gmail.com on 28 Feb 2010 at 5:49

GoogleCodeExporter commented 8 years ago
This should be marked as Closed, as it has been fixed.

Original comment by lextu...@gmail.com on 28 Apr 2013 at 7:20