Skip to content

Commit bd71d2e

Browse files
committed
Moved EventLog reference for .NET Standard 2.0 from internal code to System.Diagnostics.EventLog package to fix #869
1 parent 1b408fc commit bd71d2e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

TaskService/Native/EventLog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if (NET20 || NETSTANDARD2_0)
1+
#if NET20
22
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33
* Event methods and classes literally pulled from the .NET 4.0 implementation.
44
* None of this is original work. It comes straight from decompiled Microsoft

TaskService/TaskService.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackageId>TaskScheduler</PackageId>
88
<Title>Task Scheduler Managed Wrapper (the original Microsoft.Win32.TaskScheduler)</Title>
99
<Description>Provides a single assembly wrapper for the 1.0 and 2.0 versions of Task Scheduler found in all Microsoft operating systems post Windows 98. It simplifies the coding, aggregates the multiple versions and allows for localization support.</Description>
10-
<PackageTags>task;interop;windows;taskscheduler;scheduler</PackageTags>
10+
<PackageTags>task;interop;windows;taskscheduler;scheduler;.net;task scheduler</PackageTags>
1111
</PropertyGroup>
1212
<ItemGroup>
1313
<None Remove="TaskService.bmp" />
@@ -27,15 +27,13 @@
2727
<Reference Include="System.IO.Compression" />
2828
</ItemGroup>
2929
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
30-
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
3130
<PackageReference Include="System.Reflection" Version="4.3.0" />
3231
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
33-
<PackageReference Include="System.Security.AccessControl" Version="5.0.0" />
3432
<PackageReference Include="System.Security.Permissions" Version="5.0.0" />
3533
<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0" />
3634
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
3735
</ItemGroup>
38-
<ItemGroup Condition=" $(TargetFramework.StartsWith('netcoreapp')) Or $(TargetFramework.StartsWith('net5')) ">
36+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' Or $(TargetFramework.StartsWith('netcoreapp')) Or $(TargetFramework.StartsWith('net5')) ">
3937
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
4038
<PackageReference Include="System.Diagnostics.EventLog" Version="5.0.0" />
4139
<PackageReference Include="System.Security.AccessControl" Version="5.0.0" />

0 commit comments

Comments
 (0)