Skip to content

Commit

Permalink
Added some assembly attributes to make Mono.Data.Sqlite work on Windo…
Browse files Browse the repository at this point in the history
…ws w/ .NET 4.0
  • Loading branch information
jstedfast committed Nov 23, 2013
1 parent d230525 commit 4191f16
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Mono.Data.Sqlite/Assembly/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using System.Security;

#if !PLATFORM_COMPACTFRAMEWORK
Expand All @@ -19,6 +21,10 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

#if PLATFORM_COMPACTFRAMEWORK && RETARGETABLE
[assembly: AssemblyFlags(AssemblyNameFlags.Retargetable)]
#endif

// Setting ComVisible to false makes the types in this assembly not visible
// to COM componenets. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
Expand All @@ -29,6 +35,11 @@
#if !PLATFORM_COMPACTFRAMEWORK
[assembly: AllowPartiallyTrustedCallers]
[assembly: ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
#if NET_4_0
[assembly: SecurityRules(SecurityRuleSet.Level1)]
#else
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
#endif
#endif

// Version information for an assembly consists of the following four values:
Expand All @@ -40,4 +51,15 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("4.0.0.0")]
#if !MOBILE
#if NET_4_0
[assembly: AssemblyVersion("4.0.0.0")]
#else // NET_4_0
[assembly: AssemblyVersion("2.0.0.0")]
#endif // NET_4_0
#else
[assembly: AssemblyVersion(Consts.FxVersion)]
#endif
#if !PLATFORM_COMPACTFRAMEWORK
[assembly: AssemblyFileVersion("1.0.61.0")]
#endif

0 comments on commit 4191f16

Please sign in to comment.