From 935d2d44c22e0d39ac76b68a7009f5201e344acc Mon Sep 17 00:00:00 2001 From: Jan Friedrich Date: Fri, 13 Sep 2024 13:19:13 +0200 Subject: [PATCH] #175 added source link --- src/Directory.Build.props | 7 ++-- src/log4net/AssemblyInfo.cs | 40 +-------------------- src/log4net/AssemblyVersionInfo.cs | 40 --------------------- src/log4net/log4net.csproj | 57 ++++++++++++++++++------------ 4 files changed, 38 insertions(+), 106 deletions(-) delete mode 100644 src/log4net/AssemblyVersionInfo.cs diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b9576191..e6d21376 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,11 +1,10 @@ - - 3.0.0 - + true + portable true latest Enable nullable - + \ No newline at end of file diff --git a/src/log4net/AssemblyInfo.cs b/src/log4net/AssemblyInfo.cs index f22bdb9e..58f9ab7e 100644 --- a/src/log4net/AssemblyInfo.cs +++ b/src/log4net/AssemblyInfo.cs @@ -17,50 +17,12 @@ // #endregion -using System.Reflection; -using System.Runtime.CompilerServices; - -// // log4net makes use of static methods which cannot be made com visible -// [assembly: System.Runtime.InteropServices.ComVisible(false)] - -// -// log4net is CLS compliant -// [assembly: System.CLSCompliant(true)] - -// // If log4net is strongly named it still allows partially trusted callers -// [assembly: System.Security.AllowPartiallyTrustedCallers] -// // 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)] -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// - -#if NET462_OR_GREATER -[assembly: AssemblyInformationalVersion("3.0.0.0-.NET 4.6.2")] -[assembly: AssemblyTitle("Apache log4net for .NET Framework 4.6.2")] -#endif -#if NETSTANDARD2_0_OR_GREATER -[assembly: AssemblyInformationalVersion("3.0.0.0-.NET Standard 2.0")] -[assembly: AssemblyTitle("Apache log4net for .NET Standard 2.0")] -#endif - -#if DEBUG -[assembly: AssemblyConfiguration("Debug")] -#else -[assembly: AssemblyConfiguration("Retail")] -#endif - -[assembly: AssemblyProduct("log4net")] -[assembly: AssemblyDefaultAlias("log4net")] -[assembly: AssemblyCulture("")] \ No newline at end of file +[assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] \ No newline at end of file diff --git a/src/log4net/AssemblyVersionInfo.cs b/src/log4net/AssemblyVersionInfo.cs deleted file mode 100644 index e22225f4..00000000 --- a/src/log4net/AssemblyVersionInfo.cs +++ /dev/null @@ -1,40 +0,0 @@ -#region Apache License -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to you under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -#endregion - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: System.Reflection.AssemblyVersion("3.0.0.0")] -[assembly: System.Reflection.AssemblyFileVersion("3.0.0.0")] - -// -// Shared assembly settings -// - -[assembly: System.Reflection.AssemblyCompany("The Apache Software Foundation")] -[assembly: System.Reflection.AssemblyCopyright("Copyright 2004-2024 The Apache Software Foundation.")] -[assembly: System.Reflection.AssemblyTrademark("Apache and Apache log4net are trademarks of The Apache Software Foundation")] \ No newline at end of file diff --git a/src/log4net/log4net.csproj b/src/log4net/log4net.csproj index 1124e814..71676fa1 100644 --- a/src/log4net/log4net.csproj +++ b/src/log4net/log4net.csproj @@ -1,22 +1,22 @@ - + + 3.0.0 log4net - Apache log4net Apache log4net - - log4net is a tool to help the programmer output log statements to a variety of output targets. - In case of problems with an application, it is helpful to enable logging so that the problem - can be located. With log4net it is possible to enable logging at runtime without modifying the - application binary. The log4net package is designed so that log statements can remain in - shipped code without incurring a high performance cost. It follows that the speed of logging - (or rather not logging) is crucial. + $(Product) + log4net is a tool to help the programmer output log statements to a variety of output targets. +In case of problems with an application, it is helpful to enable logging so that the problem +can be located. With log4net it is possible to enable logging at runtime without modifying the +application binary. The log4net package is designed so that log statements can remain in +shipped code without incurring a high performance cost. It follows that the speed of logging +(or rather not logging) is crucial. - At the same time, log output can be so voluminous that it quickly becomes overwhelming. - One of the distinctive features of log4net is the notion of hierarchical loggers. - Using these loggers it is possible to selectively control which log statements are output - at arbitrary granularity. +At the same time, log output can be so voluminous that it quickly becomes overwhelming. +One of the distinctive features of log4net is the notion of hierarchical loggers. +Using these loggers it is possible to selectively control which log statements are output +at arbitrary granularity. - log4net is designed with two distinct goals in mind: speed and flexibility +log4net is designed with two distinct goals in mind: speed and flexibility AnyCPU net462;netstandard2.0 @@ -26,7 +26,7 @@ Local Library true - false + true true ..\..\log4net.snk true @@ -44,27 +44,37 @@ https://logging.apache.org/log4net/ package-icon.png logging log tracing logfiles - git - https://github.com/apache/logging-log4net Apache Logging Project $(Version) + true + true + Apache log4net for .NET + $(AssemblyName) + The Apache Software Foundation + Copyright %A9 2004 - $([System.DateTime]::Now.Year) The Apache Software Foundation + $(Copyright) + Apache and Apache log4net are trademarks of The Apache Software Foundation + $(AssemblyName) + + + + $(AssemblyTitle) Framework 4.6.2 + + + $(AssemblyTitle) Standard 2.0 - 285212672 - portable - true - 4096 README.md false false - git - https://github.com/apache/logging-log4net + Debug TRACE;DEBUG;$(DefineConstants) $(GeneratePackages) + Retail TRACE;STRONG;$(DefineConstants) true $(MSBuildProjectDirectory)\=$(MSBuildProjectDirectory.Replace($(MSBuildThisFileDirectory),"D:\Git\apache\logging-log4net"))\ @@ -104,6 +114,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive +