AlanBarber / NLog.Targets.Splunk

A NLog target for Splunk Http Event Collector (HEC) Sender
Apache License 2.0
9 stars 24 forks source link

Add support for net45 #4

Closed snakefoot closed 6 years ago

snakefoot commented 6 years ago

https://github.com/AlanBarber/NLog.Targets.Splunk/blob/e74a5aef9a44887d89f5cac650eb24c3263ef698/src/NLog.Targets.Splunk/NLog.Targets.Splunk.csproj#L4

Change to this:

 <TargetFrameworks>net45;netstandard2.0</TargetFrameworks> 

Remember that you can move the nuget-package details into the csproj, and delete the NLog.Targets.Splunk.nuspec , and add these details to your csproj-file:

    <Title>NLog for .NET Framework and .NET Standard</Title>
    <Description>A NLog target for Splunk Http Event Collector (HEC) Sender</Description>
    <Authors>Alan Barber</Authors>
    <CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
<Copyright>Copyright (c) $(CurrentYear) Alan Barber, Copyright 2013-2015 Splunk, Inc. </Copyright>
    <PackageTags>nlog;nlog-target;splunk;splunk-enterprise;logging</PackageTags>
    <PackageIconUrl>https://raw.githubusercontent.com/AlanBarber/NLog.Targets.Splunk/master/docs/nugeticon.png</PackageIconUrl>
    <PackageProjectUrl>https://github.com/AlanBarber/NLog.Targets.Splunk</PackageProjectUrl>
    <PackageLicenseUrl>https://github.com/AlanBarber/NLog.Targets.Splunk/blob/master/LICENSE</PackageLicenseUrl>
    <RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/AlanBarber/NLog.Targets.Splunk</RepositoryUrl>

Then you can just use this command to create the nuget-package:

dotnet pack --configuration Release --include-symbols --version-suffix 2.0.0-rc

AlanBarber commented 6 years ago

Thanks for the suggestion, I'll take a look and see if I can't get a RC1 release out in a day or two with this working.