Skip to content

Commit 8dcaed8

Browse files
committed
Added packages
1 parent d68c966 commit 8dcaed8

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

Build.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ function Invoke-NuGetPackSpec($nuspec, $version)
4242
}
4343

4444
function Invoke-NuGetPack($version)
45-
{
46-
# ls src/**/*.csproj |
47-
# Where-Object { -not ($_.Name -like "*net40*") } |
48-
# ForEach-Object { Invoke-NuGetPackProj $_ }
49-
45+
{
5046
pushd .\src\Serilog.Sinks.Splunk
5147
Invoke-NuGetPackSpec "Serilog.Sinks.Splunk.nuspec" $version
5248
popd
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
2-
using System.Collections.Generic;
2+
using System.Collections.Concurrent;
33
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
64

75
namespace Serilog.Sinks.Splunk.Sample
86
{
@@ -12,9 +10,12 @@ static void Main(string[] args)
1210
{
1311
Log.Logger = new LoggerConfiguration()
1412
.WriteTo.LiterateConsole()
15-
.WriteTo.SplunkViaTcp("localhost", 8089)
13+
.WriteTo.SplunkViaTcp("127.0.0.1", 10001)
1614
.CreateLogger();
1715

16+
Log.Information("Just another test");
17+
18+
Console.ReadLine();
1819
}
1920
}
2021
}

sample/Serilog.Sinks.Splunk.Sample/Serilog.Sinks.Splunk.Sample.csproj

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
<Reference Include="Serilog.Sinks.Literate">
4343
<HintPath>..\..\packages\Serilog.Sinks.Literate.1.0.6\lib\net45\Serilog.Sinks.Literate.dll</HintPath>
4444
</Reference>
45-
<Reference Include="Serilog.Sinks.Splunk.FullNetFx">
46-
<HintPath>..\..\src\Serilog.Sinks.Splunk.FullNetFx\bin\Debug\Serilog.Sinks.Splunk.FullNetFx.dll</HintPath>
47-
</Reference>
4845
<Reference Include="Splunk.Client">
4946
<HintPath>..\..\packages\Splunk.Client.2.1.2\lib\portable-net45+win+wpa81\Splunk.Client.dll</HintPath>
5047
</Reference>
@@ -54,11 +51,7 @@
5451
</Reference>
5552
<Reference Include="System" />
5653
<Reference Include="System.Core" />
57-
<Reference Include="System.Xml.Linq" />
58-
<Reference Include="System.Data.DataSetExtensions" />
5954
<Reference Include="Microsoft.CSharp" />
60-
<Reference Include="System.Data" />
61-
<Reference Include="System.Xml" />
6255
</ItemGroup>
6356
<ItemGroup>
6457
<Compile Include="Program.cs" />
@@ -68,6 +61,16 @@
6861
<None Include="App.config" />
6962
<None Include="packages.config" />
7063
</ItemGroup>
64+
<ItemGroup>
65+
<ProjectReference Include="..\..\src\Serilog.Sinks.Splunk.FullNetFx\Serilog.Sinks.Splunk.FullNetFx.csproj">
66+
<Project>{17deed0f-f9cb-48fb-b4dc-53fb6aee64d7}</Project>
67+
<Name>Serilog.Sinks.Splunk.FullNetFx</Name>
68+
</ProjectReference>
69+
<ProjectReference Include="..\..\src\Serilog.Sinks.Splunk\Serilog.Sinks.Splunk.csproj">
70+
<Project>{1493abc3-811c-46c7-92ed-ceb7567fb588}</Project>
71+
<Name>Serilog.Sinks.Splunk</Name>
72+
</ProjectReference>
73+
</ItemGroup>
7174
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7275
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
7376
Other similar extension points exist, see Microsoft.Common.targets.

sample/Serilog.Sinks.Splunk.Sample/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
<package id="Serilog.Sinks.Literate" version="1.0.6" targetFramework="net451" />
55
<package id="Splunk.Client" version="2.1.2" targetFramework="net451" />
66
<package id="Splunk.Logging.Common" version="1.1.0" targetFramework="net451" />
7+
78
</packages>

0 commit comments

Comments
 (0)