2 using System
.Reflection
;
4 [assembly
: AssemblyKeyFileAttribute ("test-715.snk")]
5 [assembly
: AssemblyFlags (AssemblyNameFlags
.EnableJITcompileOptimizer
| AssemblyNameFlags
.Retargetable
)]
9 public static int Main ()
11 Assembly thisAsm
= Assembly
.GetExecutingAssembly ();
12 AssemblyName name
= thisAsm
.GetName (false);
14 if (name
.Flags
!= (AssemblyNameFlags
.EnableJITcompileOptimizer
| AssemblyNameFlags
.Retargetable
| AssemblyNameFlags
.PublicKey
))
17 byte[] key
= name
.GetPublicKey ();
18 if (key
.Length
!= 160)
24 if (name
.HashAlgorithm
!= System
.Configuration
.Assemblies
.AssemblyHashAlgorithm
.SHA1
)
27 // if (name.ProcessorArchitecture != ProcessorArchitecture.MSIL)
30 if (name
.VersionCompatibility
!= System
.Configuration
.Assemblies
.AssemblyVersionCompatibility
.SameMachine
)
33 Console
.WriteLine ("OK");