Skip to content

Commit 56c382d

Browse files
committed
Updated projects to 2.8.16
1 parent f57e3b4 commit 56c382d

File tree

7 files changed

+25
-12
lines changed

7 files changed

+25
-12
lines changed

TaskEditor/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
[assembly: AssemblyCompany("GitHub Community")]
2222
[assembly: AssemblyProduct("TaskService")]
2323
[assembly: AssemblyCopyright("Copyright © 2019")]
24-
[assembly: AssemblyVersion("2.8.15")]
25-
[assembly: AssemblyFileVersion("2.8.15")]
24+
[assembly: AssemblyVersion("2.8.16")]
25+
[assembly: AssemblyFileVersion("2.8.16")]

TaskEditor/TaskEditor.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>TaskSchedulerEditor</id>
5-
<version>2.8.15</version>
5+
<version>2.8.16</version>
66
<title>Task Scheduler Managed Wrapper UI Library</title>
77
<authors>David Hall</authors>
88
<description>Provides localizable UI elements for editing classes in the TaskScheduler library.</description>
@@ -13,7 +13,7 @@
1313
<iconUrl>https://github.com/dahall/TaskScheduler/blob/master/docs/icons/tsnew48.png?raw=true</iconUrl>
1414
<tags>task interop windows taskscheduler scheduler UI editor</tags>
1515
<dependencies>
16-
<dependency id="TaskScheduler" version="[2.8.15]" />
16+
<dependency id="TaskScheduler" version="[2.8.16]" />
1717
<dependency id="AeroWizard" version="[2.2.3]" />
1818
<dependency id="GroupControls" version="[1.8.0]" />
1919
<dependency id="TimeSpan2" version="[2.2.0]" />

TaskSchedulerMockup/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
[assembly: AssemblyCompany("GitHub Community")]
1111
[assembly: AssemblyProduct("TaskService")]
1212
[assembly: AssemblyCopyright("Copyright © 2019")]
13-
[assembly: AssemblyVersion("2.8.15")]
14-
[assembly: AssemblyFileVersion("2.8.15")]
13+
[assembly: AssemblyVersion("2.8.16")]
14+
[assembly: AssemblyFileVersion("2.8.16")]
1515

1616
// Setting ComVisible to false makes the types in this assembly not visible
1717
// to COM components. If you need to access a type in this assembly from

TaskService/Task.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using System.Reflection;
1414
using System.Runtime.InteropServices;
1515
using System.Runtime.InteropServices.ComTypes;
16+
using System.Runtime.Serialization;
1617
using System.Runtime.Serialization.Formatters.Binary;
1718
using System.Security;
1819
using System.Security.AccessControl;
@@ -1692,8 +1693,8 @@ internal TaskCompatibilityEntry(TaskCompatibility comp, string prop, string reas
16921693
/// <summary>Defines all the components of a task, such as the task settings, triggers, actions, and registration information.</summary>
16931694
[XmlRoot("Task", Namespace = tns, IsNullable = false)]
16941695
[XmlSchemaProvider("GetV1SchemaFile")]
1695-
[PublicAPI]
1696-
public sealed class TaskDefinition : IDisposable, IXmlSerializable
1696+
[PublicAPI, Serializable]
1697+
public sealed class TaskDefinition : IDisposable, IXmlSerializable, ISerializable
16971698
{
16981699
internal const string tns = "http://schemas.microsoft.com/windows/2004/02/mit/task";
16991700

@@ -1718,6 +1719,13 @@ internal TaskDefinition([NotNull] ITaskDefinition iDef)
17181719
v2Def = iDef;
17191720
}
17201721

1722+
private TaskDefinition(SerializationInfo info, StreamingContext context)
1723+
{
1724+
throw new NotImplementedException("Currently there is no way to deserialize an instance of TaskDefinition due to the dependency on information from the TaskService instance.");
1725+
// TODO: Figure out how to associate with the ITaskService instance
1726+
XmlText = info.GetString(nameof(XmlText));
1727+
}
1728+
17211729
/// <summary>Gets a collection of actions that are performed by the task.</summary>
17221730
[XmlArrayItem(ElementName = "Exec", IsNullable = true, Type = typeof(ExecAction))]
17231731
[XmlArrayItem(ElementName = "ShowMessage", IsNullable = true, Type = typeof(ShowMessageAction))]
@@ -2165,6 +2173,11 @@ private TaskCompatibility GetLowestSupportedVersion(IList<TaskCompatibilityEntry
21652173
}
21662174
return res;
21672175
}
2176+
2177+
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
2178+
{
2179+
info.AddValue(nameof(XmlText), XmlText);
2180+
}
21682181
}
21692182

21702183
/// <summary>

TaskService/TaskService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<AssemblyOriginatorKeyFile>TaskService.snk</AssemblyOriginatorKeyFile>
88
<DelaySign>false</DelaySign>
99
<PackageId>TaskScheduler</PackageId>
10-
<Version>2.8.15</Version>
10+
<Version>2.8.16</Version>
1111
<Title>Task Scheduler Managed Wrapper (the original Microsoft.Win32.TaskScheduler)</Title>
1212
<Authors>David Hall</Authors>
1313
<Company>GitHub Community</Company>

TestTaskService/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
[assembly: AssemblyCompany("GitHub Community")]
1919
[assembly: AssemblyProduct("TaskService")]
2020
[assembly: AssemblyCopyright("Copyright © 2019")]
21-
[assembly: AssemblyVersion("2.8.15")]
22-
[assembly: AssemblyFileVersion("2.8.15")]
21+
[assembly: AssemblyVersion("2.8.16")]
22+
[assembly: AssemblyFileVersion("2.8.16")]

TestTaskServiceConsole/TestTaskServiceConsole.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<OutputType>Exe</OutputType>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
55
<StartupObject>TestTaskServiceConsole.Program</StartupObject>
6-
<Version>2.8.15</Version>
6+
<Version>2.8.16</Version>
77
</PropertyGroup>
88
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
99
<LangVersion>latest</LangVersion>

0 commit comments

Comments
 (0)