Somehow I do not get it work. I use the injection as post build step to in
inject a try finally block in every method. For strong name signing an snk
file lays next to the csproj file. I tried to use this file to pass it as
recommended in your link.
assemblyDefinition.Write(Assembly, new WriterParameters { StrongNameKeyPair
= new StrongNameKeyPair("Assembly.snk") });
I always get this exception
Exception caught: System.ArgumentException: Unable to obtain public key
for StrongNameKeyPair.
39> at System.Reflection.StrongNameKeyPair.ComputePublicKey()
39> at System.Reflection.StrongNameKeyPair.get_PublicKey()
Somehow it works to reassign the strong name with SN tool SN -Ra
"Assembly.snk" after it has been saved without above mentioned writer
parameter.
Some more Ideas?
Am Donnerstag, 15. Januar 2015 11:59:30 UTC+1 schrieb Reh Gina:
>
> Thanks :-)
>
> Am Donnerstag, 15. Januar 2015 11:47:00 UTC+1 schrieb Greg Young:
>>
>> https://github.com/jbevain/cecil/wiki/StrongName should help you
>> On 15 Jan 2015 12:41, "Reh Gina" <[email protected]> wrote:
>>
>>> According to google this message occurs in case something went wrong
>>> with strong naming. But I did not found out until now how to avoid this.
>>>
>>> Am Donnerstag, 15. Januar 2015 11:34:11 UTC+1 schrieb Greg Young:
>>>>
>>>> Looks like a signing problem
>>>> On 15 Jan 2015 12:10, "Reh Gina" <[email protected]> wrote:
>>>>
>>>>>
>>>>> <https://lh6.googleusercontent.com/-mlhns37oflQ/VLeSDv0YjSI/AAAAAAAABXQ/6H9slVyJH28/s1600/Installationsfehler.png>
>>>>> Does anybody know this error and how to avoid it?
>>>>>
>>>>> --
>>>>> --
>>>>> --
>>>>> mono-cecil
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "mono-cecil" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>> --
>>> --
>>> mono-cecil
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "mono-cecil" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
--
--
--
mono-cecil
---
You received this message because you are subscribed to the Google Groups
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.