Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first try to add support for NLog-3.2 (issue #75)
It is more a template for further work to integrate support for Nlog-3.2.
- Loading branch information
1 parent
ecde9c1
commit be1ab81
Showing
15 changed files
with
16,588 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Reflection; | ||
using System.Security; | ||
|
||
[assembly: AssemblyProduct("Common Logging Framework NLog 3.1 Adapter")] | ||
[assembly: SecurityTransparent] | ||
|
||
#if NET_4_0 | ||
[assembly: SecurityRules(SecurityRuleSet.Level1)] | ||
#endif |
137 changes: 137 additions & 0 deletions
137
src/Common.Logging.NLog32/Common.Logging.NLog32.2010-net40.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>9.0.30729</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{33BE0554-42E6-46B5-A340-0A12DA3755DB}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Common</RootNamespace> | ||
<AssemblyName>Common.Logging.NLog32</AssemblyName> | ||
<FileUpgradeFlags> | ||
</FileUpgradeFlags> | ||
<OldToolsVersion>3.5</OldToolsVersion> | ||
<UpgradeBackupLocation> | ||
</UpgradeBackupLocation> | ||
<IsWebBootstrapper>false</IsWebBootstrapper> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<PublishUrl>publish\</PublishUrl> | ||
<Install>true</Install> | ||
<InstallFrom>Disk</InstallFrom> | ||
<UpdateEnabled>false</UpdateEnabled> | ||
<UpdateMode>Foreground</UpdateMode> | ||
<UpdateInterval>7</UpdateInterval> | ||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | ||
<UpdatePeriodically>false</UpdatePeriodically> | ||
<UpdateRequired>false</UpdateRequired> | ||
<MapFileExtensions>true</MapFileExtensions> | ||
<ApplicationRevision>0</ApplicationRevision> | ||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | ||
<UseApplicationTrust>false</UseApplicationTrust> | ||
<BootstrapperEnabled>true</BootstrapperEnabled> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>..\..\build\net40\Common.Logging.NLog32\Debug\</OutputPath> | ||
<DefineConstants>TRACE;DEBUG;NET_4_0;NLOG2</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<DocumentationFile>Common.Logging.NLog32.xml</DocumentationFile> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NoWarn>1607</NoWarn> | ||
<UseVSHostingProcess>false</UseVSHostingProcess> | ||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>..\..\build\net40\Common.Logging.NLog32\Release\</OutputPath> | ||
<DefineConstants>TRACE;NET_4_0;NLOG2</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<DocumentationFile>Common.Logging.NLog32.xml</DocumentationFile> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NoWarn>1607</NoWarn> | ||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="NLog, Version=3.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\..\lib\NLog32\net\4.0\NLog.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.configuration" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\Common.Logging.NLog10\Logging\NLog\CommonLoggingTarget.cs"> | ||
<Link>Logging\NLog\CommonLoggingTarget.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Common.Logging.NLog10\Logging\NLog\NLogLogger.cs"> | ||
<Link>Logging\NLog\NLogLogger.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Common.Logging.NLog10\Logging\NLog\NLogLoggerFactoryAdapter.cs"> | ||
<Link>Logging\NLog\NLogLoggerFactoryAdapter.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Common.Logging.NLog20\Logging\NLog\NLogGlobalVariablesContext.cs"> | ||
<Link>Logging\NLog\NLogGlobalVariablesContext.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Common.Logging.NLog20\Logging\NLog\NLogLogger.VariablesContext.cs"> | ||
<Link>Logging\NLog\NLogLogger.VariablesContext.cs</Link> | ||
</Compile> | ||
<Compile Include="..\Common.Logging.NLog20\Logging\NLog\NLogThreadVariablesContext.cs"> | ||
<Link>Logging\NLog\NLogThreadVariablesContext.cs</Link> | ||
</Compile> | ||
<Compile Include="..\CommonAssemblyInfo.cs"> | ||
<Link>CommonAssemblyInfo.cs</Link> | ||
</Compile> | ||
<Compile Include="AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1</ProductName> | ||
<Install>true</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> | ||
<Visible>False</Visible> | ||
<ProductName>Windows Installer 3.1</ProductName> | ||
<Install>true</Install> | ||
</BootstrapperPackage> | ||
</ItemGroup> | ||
<ItemGroup /> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Common.Logging.Core\Common.Logging.Core.2010.csproj"> | ||
<Project>{7eeb2191-b3fc-4509-aa4b-a345c386eeed}</Project> | ||
<Name>Common.Logging.Core.2010</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\Common.Logging\Common.Logging.2010-net40.csproj"> | ||
<Project>{440D903A-D409-48FC-A6C4-3EE69CCD663B}</Project> | ||
<Name>Common.Logging.2010-net40</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
<UserProperties ProjectLinkReference="c3faaf50-ca05-42a5-9616-b48c21643d03" ProjectLinkerExcludeFilter="\\?desktop(\\.*)?$;\\?silverlight(\\.*)?$;\.desktop;\.silverlight;\.xaml;^service references(\\.*)?$;\.clientconfig;^web references(\\.*)?$" /> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>Common.Logging.NLog32</id> | ||
<version>0.0.0</version> | ||
<!-- placeholder value replaced by build script --> | ||
<authors>Aleksandar Seovic, Mark Pollack, Erich Eichinger, Stephen Bohlen</authors> | ||
<owners>Aleksandar Seovic, Mark Pollack, Erich Eichinger, Stephen Bohlen</owners> | ||
<projectUrl>http://netcommon.sourceforge.net/</projectUrl> | ||
<iconUrl>https://raw.githubusercontent.com/net-commons/common-logging/master/nuget-graphics/common-logging-icon.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Common.Logging library bindings for NLog 3.2 logging framework.</description> | ||
<tags>NLog Common.Logging.NLog logging log Common.Logging</tags> | ||
<language>en-US</language> | ||
<dependencies> | ||
<dependency id="Common.Logging" version="3.0.0" /> | ||
<dependency id="NLog" version="3.2.0" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\..\build\net40\Common.Logging.NLog31\Release\Common.Logging.NLog32.dll" target="lib\net40" /> | ||
<file src="..\..\build\net40\Common.Logging.NLog31\Release\Common.Logging.NLog32.pdb" target="lib\net40" /> | ||
<file src="..\..\build\net40\Common.Logging.NLog31\Release\Common.Logging.NLog32.xml" target="lib\net40" /> | ||
</files> | ||
</package> |
Oops, something went wrong.