Skip to content

Commit

Permalink
Merge pull request #8 from snakefoot/master
Browse files Browse the repository at this point in the history
NLog with NetStandard support and VS2017 csproj
  • Loading branch information
toddmeinershagen authored Apr 14, 2018
2 parents 3901094 + 6a60c88 commit 67ce949
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 138 deletions.
1 change: 1 addition & 0 deletions src/.nuget/NuGet.targets
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PackageSource Include="https://nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
<PackageSource Include="https://nuget.org/api/v2/" />
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
Expand Down
97 changes: 25 additions & 72 deletions src/NLog.SignalR/NLog.SignalR.csproj
Original file line number Diff line number Diff line change
@@ -1,77 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1414FDCE-96BA-4706-BCEF-EEEC410DF025}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NLog.SignalR</RootNamespace>
<AssemblyName>NLog.SignalR</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<TargetFrameworkProfile />
<TargetFrameworks>net45;net40;netstandard1.3</TargetFrameworks>

<Title>NLog.SignalR</Title>
<Company>Todd Meinershagen</Company>
<Description>Custom NLog target for sending log events to a SignalR hub.</Description>
<Product>NLog.SignalR</Product>
<Version Condition=" '$(Version)' == ''">$(VersionSuffix)</Version>
<Version Condition=" '$(Version)' == ''">5.0.0</Version>
<Authors>Todd Meinershagen</Authors>
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
<Copyright>Copyright © 2014-$(CurrentYear)</Copyright>

<PackageIconUrl>http://nlog-project.org/N.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/toddmeinershagen/NLog.SignalR</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/toddmeinershagen/NLog.SignalR/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/toddmeinershagen/NLog.SignalR</RepositoryUrl>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.AspNet.SignalR.Client, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.AspNet.SignalR.Client.2.1.1\lib\net40\Microsoft.AspNet.SignalR.Client.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net40\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.4.0.1\lib\net40\NLog.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="HubProxy.cs" />
<Compile Include="ILoggingHub.cs" />
<Compile Include="LogEvent.cs" />
<Compile Include="SignalRTarget.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<ItemGroup Condition=" '$(TargetFramework)' != 'netstandard1.3' ">
<PackageReference Include="NLog" Version="4.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="6.0.4" />
<PackageReference Include="Microsoft.AspNet.SignalR.Client" Version="2.1.1" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="NLog.SignalR.nuspec" />
<None Include="packages.config" />
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
<PackageReference Include="NLog" Version="4.5.0" />
<PackageReference Include="Microsoft.AspNet.SignalR.Client" Version="2.2.2" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<!-- 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>
23 changes: 0 additions & 23 deletions src/NLog.SignalR/NLog.SignalR.nuspec

This file was deleted.

27 changes: 1 addition & 26 deletions src/NLog.SignalR/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
using System.Reflection;
using System.Runtime.InteropServices;

// 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.
[assembly: AssemblyTitle("NLog.SignalR")]
[assembly: AssemblyDescription("Custom NLog target for sending log events to a SignalR hub.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Todd Meinershagen")]
[assembly: AssemblyProduct("NLog.SignalR")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1ba2dd58-4c9a-47a4-a6ac-6fa65b70da05")]

// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.1")]
[assembly: AssemblyFileVersion("4.0.1")]
[assembly: Guid("1ba2dd58-4c9a-47a4-a6ac-6fa65b70da05")]
11 changes: 0 additions & 11 deletions src/NLog.SignalR/app.config

This file was deleted.

6 changes: 0 additions & 6 deletions src/NLog.SignalR/packages.config

This file was deleted.

0 comments on commit 67ce949

Please sign in to comment.