Skip to content

Commit fe2f2b8

Browse files
committed
Corrected problem with signed assembly causing AppVeyor build failure
1 parent 19927e0 commit fe2f2b8

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<PackageIcon>tsnew48.png</PackageIcon>
1515
<RepositoryUrl>https://github.com/dahall/taskscheduler</RepositoryUrl>
1616
<RepositoryType>Git</RepositoryType>
17-
<SignAssembly>true</SignAssembly>
18-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Microsoft.Windows.TaskScheduler.pfx</AssemblyOriginatorKeyFile>
1917
<Version>2.11.1</Version>
20-
<NoWarn>$(NoWarn);NETSDK1138;SYSLIB0003;SYSLIB0004;SYSLIB0011</NoWarn>
18+
<SignAssembly>True</SignAssembly>
19+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Microsoft.Windows.TaskScheduler.snk</AssemblyOriginatorKeyFile>
20+
<NoWarn>$(NoWarn);NETSDK1138;SYSLIB0003;SYSLIB0004;SYSLIB0011;SYSLIB0051</NoWarn>
2121
</PropertyGroup>
2222
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2323
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
-1.72 KB
Binary file not shown.
596 Bytes
Binary file not shown.

TaskService.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2626
Directory.Build.props = Directory.Build.props
2727
Directory.Build.targets = Directory.Build.targets
2828
license.md = license.md
29-
Microsoft.Windows.TaskScheduler.pfx = Microsoft.Windows.TaskScheduler.pfx
29+
Microsoft.Windows.TaskScheduler.snk = Microsoft.Windows.TaskScheduler.snk
3030
README.md = README.md
3131
EndProjectSection
3232
EndProject

TaskService/TaskService.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<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>
99
<PackageTags>task;interop;windows;taskscheduler;scheduler;.net;task scheduler</PackageTags>
1010
<PackageReadmeFile>TaskService.md</PackageReadmeFile>
11-
<SignAssembly>True</SignAssembly>
1211
</PropertyGroup>
1312
<ItemGroup>
1413
<None Include="TaskService.md" Pack="true" PackagePath="\" />
@@ -34,11 +33,16 @@
3433
<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0" />
3534
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
3635
</ItemGroup>
37-
<ItemGroup Condition=" !$(TargetFramework.StartsWith('net4')) ">
36+
<ItemGroup Condition=" !$(TargetFramework.StartsWith('net4')) And !$(TargetFramework.StartsWith('netcore')) ">
3837
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
3938
<PackageReference Include="System.Diagnostics.EventLog" Version="8.0.0" />
4039
<PackageReference Include="System.Security.AccessControl" Version="6.0.1" />
4140
</ItemGroup>
41+
<ItemGroup Condition=" $(TargetFramework.StartsWith('netcore')) ">
42+
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
43+
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0" />
44+
<PackageReference Include="System.Security.AccessControl" Version="6.0.1" />
45+
</ItemGroup>
4246
<ItemGroup>
4347
<Compile Update="Properties\Resources.Designer.cs">
4448
<DesignTime>True</DesignTime>

0 commit comments

Comments
 (0)