Skip to content

Instantly share code, notes, and snippets.

@sharpjs
Created May 14, 2014 22:24
Show Gist options
  • Save sharpjs/95500bfa815c1a26fc90 to your computer and use it in GitHub Desktop.
Save sharpjs/95500bfa815c1a26fc90 to your computer and use it in GitHub Desktop.
Example Per-Project AssemblyInfo.cs
using System.Reflection;
using System.Security;
// General Information
[assembly: AssemblyTitle ("My Utility")]
[assembly: AssemblyDescription ("A neat program that does a few useful things.")]
// Security
//
// All code is transparent.
// The entire assembly will not do anything privileged or unsafe.
// http://msdn.microsoft.com/en-us/library/dd233102.aspx
//
[assembly: SecurityTransparent]
// Security
//
// All code defaults to transparent.
// However, individual types and members can have other attributes.
// http://msdn.microsoft.com/en-us/library/dd233102.aspx
//
[assembly: AllowPartiallyTrustedCallers]
// Security
//
// All types and members are security-critical,
// except where being security-critical violates an inheritance rule.
// http://msdn.microsoft.com/en-us/library/dd233102.aspx
//
// (default behavior; no security attribute)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment