Skip to content

Commit c3a2e15

Browse files
committed
Updated to nlog 4.5 and fixed a unit test bug
1 parent 7ae8a5b commit c3a2e15

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Platforms/Exceptionless.NLog/Exceptionless.NLog.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,19 @@
2525
<ProjectReference Include="..\..\Exceptionless\Exceptionless.csproj" />
2626
</ItemGroup>
2727

28+
<ItemGroup Label="Package References">
29+
<PackageReference Include="NLog" Version="4.5.0" />
30+
</ItemGroup>
31+
2832
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' " Label="Build">
2933
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_0</DefineConstants>
3034
</PropertyGroup>
3135

32-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' " Label="Package References">
33-
<PackageReference Include="NLog" Version="4.5.0-rc02" />
34-
</ItemGroup>
35-
3636
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' " Label="Build">
3737
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
3838
</PropertyGroup>
3939

4040
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' " Label="Framework References">
41-
<PackageReference Include="NLog" Version="4.4.12" />
4241
<Reference Include="System" />
4342
<Reference Include="Microsoft.CSharp" />
4443
</ItemGroup>

test/Exceptionless.Tests/Plugins/PluginTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,10 @@ public void CanAddPluginConcurrently() {
555555
[Fact]
556556
public void EnvironmentInfo_CanRunInParallel() {
557557
var client = CreateClient();
558-
var ev = new Event { Type = Event.KnownTypes.Session };
559558
var plugin = new EnvironmentInfoPlugin();
560559

561560
Parallel.For(0, 10000, i => {
561+
var ev = new Event { Type = Event.KnownTypes.Session };
562562
var context = new EventPluginContext(client, ev);
563563
plugin.Run(context);
564564
Assert.Single(context.Event.Data);

0 commit comments

Comments
 (0)