The FxCop team has just announced the availability of RC 1 of FxCop 1.35.  Notable in this release is the introduction of the first three rules around security transparency.  Namely, you'll see:

  • SecurityTransparentAssembliesShouldNotContainSecurityCriticalCode - fires when an assembly which is marked transparent contains any code which is marked critical.
  • SecurityTransparentCodeShouldNotAssert - fires when a block of transparent code attempts to execute a CAS Assert.
  • SecurityTransparentCodeShouldNotReferenceNonpublicSecurityCriticalCode - fires when transparent code attempts to use critical code which is not public or TreatAsSafe.