Skip to content

Commit

Permalink
Merge pull request #176 from apache/Feature/175-add-source-link
Browse files Browse the repository at this point in the history
added source link - see https://github.com/dotnet/sourcelink

before
```
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AllowPartiallyTrustedCallers]
[assembly: SecurityRules(/*Could not decode attribute arguments.*/)]
[assembly: AssemblyInformationalVersion("3.0.0.0-.NET Standard 2.0")]
[assembly: AssemblyTitle("Apache log4net for .NET Standard 2.0")]
[assembly: AssemblyConfiguration("Retail")]
[assembly: AssemblyProduct("log4net")]
[assembly: AssemblyDefaultAlias("log4net")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyCompany("The Apache Software Foundation")]
[assembly: AssemblyCopyright("Copyright 2004-2024 The Apache Software Foundation.")]
[assembly: AssemblyTrademark("Apache and Apache log4net are trademarks of The Apache Software Foundation")]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyVersion("3.0.0.0")]
```

after:
```
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AllowPartiallyTrustedCallers]
[assembly: SecurityRules(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("The Apache Software Foundation")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCopyright("Copyright © 2004 - 2024 The Apache Software Foundation")]
[assembly: AssemblyDescription("log4net is a tool to help the programmer output log statements to a variety of output targets.\r\nIn case of problems with an application, it is helpful to enable logging so that the problem\r\ncan be located. With log4net it is possible to enable logging at runtime without modifying the\r\napplication binary. The log4net package is designed so that log statements can remain in\r\nshipped code without incurring a high performance cost. It follows that the speed of logging\r\n(or rather not logging) is crucial.\r\n\r\nAt the same time, log output can be so voluminous that it quickly becomes overwhelming.\r\nOne of the distinctive features of log4net is the notion of hierarchical loggers.\r\nUsing these loggers it is possible to selectively control which log statements are output\r\nat arbitrary granularity.\r\n\r\nlog4net is designed with two distinct goals in mind: speed and flexibility\r\n    ")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyInformationalVersion("3.0.0+13eca1117942f3ef5fc742ee70bed6588f274276")]
[assembly: AssemblyProduct("Apache log4net")]
[assembly: AssemblyTitle("Apache log4net for .NET Standard 2.0")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/apache/logging-log4net")]
[assembly: AssemblyVersion("3.0.0.0")]
```
  • Loading branch information
FreeAndNil committed Sep 13, 2024
2 parents 13eca11 + 935d2d4 commit e614e1c
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 e614e1c

Please sign in to comment.