diff --git a/src/log4net/AssemblyInfo.cs b/src/log4net/AssemblyInfo.cs index 9539a78e..21b94e5b 100644 --- a/src/log4net/AssemblyInfo.cs +++ b/src/log4net/AssemblyInfo.cs @@ -39,14 +39,13 @@ [assembly: System.Security.AllowPartiallyTrustedCallers] #endif -#if (NET_4_0) +#if (NET_4_0 || NETSTANDARD2_0) // // Allows partial trust applications (e.g. ASP.NET shared hosting) on .NET 4.0 to work // given our implementation of ISerializable. // [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] #endif - // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information