Skip to content

Commit

Permalink
#175 added source link
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeAndNil committed Sep 13, 2024
1 parent 13eca11 commit 935d2d4
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 106 deletions.
7 changes: 3 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<Project>
<PropertyGroup Label="Versioning">
<VersionPrefix>3.0.0</VersionPrefix>
</PropertyGroup>
<PropertyGroup>
<Deterministic>true</Deterministic>
<DebugType>portable</DebugType>
<UseSharedCompilation>true</UseSharedCompilation>
<LangVersion>latest</LangVersion>
<Nullable>Enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
</PropertyGroup>
</Project>
</Project>
40 changes: 1 addition & 39 deletions src/log4net/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]
[assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
40 changes: 0 additions & 40 deletions src/log4net/AssemblyVersionInfo.cs

This file was deleted.

57 changes: 34 additions & 23 deletions src/log4net/log4net.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>3.0.0</Version>
<PackageId>log4net</PackageId>
<Title>Apache log4net</Title>
<Product>Apache log4net</Product>
<Description>
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.
<Title>$(Product)</Title>
<Description>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
</Description>
<Platforms>AnyCPU</Platforms>
<TargetFrameworks>net462;netstandard2.0</TargetFrameworks>
Expand All @@ -26,7 +26,7 @@
<ProjectType>Local</ProjectType>
<OutputType>Library</OutputType>
<MapFileExtensions>true</MapFileExtensions>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\log4net.snk</AssemblyOriginatorKeyFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand All @@ -44,27 +44,37 @@
<PackageProjectUrl>https://logging.apache.org/log4net/</PackageProjectUrl>
<PackageIcon>package-icon.png</PackageIcon>
<PackageTags>logging log tracing logfiles</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/apache/logging-log4net</RepositoryUrl>
<Owners>Apache Logging Project</Owners>
<PackageVersion>$(Version)</PackageVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AssemblyTitle>Apache log4net for .NET</AssemblyTitle>
<AssemblyProduct>$(AssemblyName)</AssemblyProduct>
<AssemblyCompany>The Apache Software Foundation</AssemblyCompany>
<Copyright>Copyright %A9 2004 - $([System.DateTime]::Now.Year) The Apache Software Foundation</Copyright>
<AssemblyCopyright>$(Copyright)</AssemblyCopyright>
<AssemblyTrademark>Apache and Apache log4net are trademarks of The Apache Software Foundation</AssemblyTrademark>
<AssemblyDefaultAlias>$(AssemblyName)</AssemblyDefaultAlias>
<AssemblyCulture></AssemblyCulture>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net462'">
<AssemblyTitle>$(AssemblyTitle) Framework 4.6.2</AssemblyTitle>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<AssemblyTitle>$(AssemblyTitle) Standard 2.0</AssemblyTitle>
</PropertyGroup>
<PropertyGroup>
<BaseAddress>285212672</BaseAddress>
<DebugType>portable</DebugType>
<Deterministic>true</Deterministic>
<FileAlignment>4096</FileAlignment>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/apache/logging-log4net</RepositoryUrl>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
<AssemblyConfiguration>Debug</AssemblyConfiguration>
<DefineConstants>TRACE;DEBUG;$(DefineConstants)</DefineConstants>
<GeneratePackageOnBuild>$(GeneratePackages)</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)'=='Release' ">
<AssemblyConfiguration>Retail</AssemblyConfiguration>
<DefineConstants>TRACE;STRONG;$(DefineConstants)</DefineConstants>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PathMap>$(MSBuildProjectDirectory)\=$(MSBuildProjectDirectory.Replace($(MSBuildThisFileDirectory),"D:\Git\apache\logging-log4net"))\</PathMap>
Expand Down Expand Up @@ -104,6 +114,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>
<Import Project="../MonoForFramework.targets" />
<Target Name="_ResolveCopyLocalNuGetPackagePdbsAndXml" Condition="$(CopyLocalLockFileAssemblies) == true" AfterTargets="ResolveReferences">
Expand Down

0 comments on commit 935d2d4

Please sign in to comment.