Jb Evain wrote:
As a prelude, you have to know that the ECMA-335 describes two ways to
serialize security declarations.
The first one is just a blob of XML, and is usually found on
assemblies prior to .net 2.0.
The second one looks like a CustomAttribute, and is usually found on
assemblies on and after .net 2.0.
Currently, Cecil is able to read the former and the later, but only
writes the later. (Which is an issue if you're roundtripping an
assembly which is supposed to run on .net 1.1).
OK, at least it makes sense it's an issue for me (since I'm kind of
limited to .NET 1.1, which noone but my company seems to be using any
more...)
And even if they look different, the output assembly should work, doesn't it?
Well, that's the problem: I'm getting a
System.Security.SecurityException: "Failure decoding embedded permission
set object." when trying to run the assembly. I'm running it under
Windows XP on .NET 1.1 (I do have other versions installed).
Any chance we can write old-style permission sets? Copy the blob?
Thanks for the fast help.
Simon
--
--
mono-cecil