diff --git a/src/IKVM.MSBuild.Tasks/IkvmTaskException.cs b/src/IKVM.MSBuild.Tasks/IkvmTaskException.cs index 8643afbeb7..e677559562 100644 --- a/src/IKVM.MSBuild.Tasks/IkvmTaskException.cs +++ b/src/IKVM.MSBuild.Tasks/IkvmTaskException.cs @@ -31,6 +31,18 @@ public IkvmTaskException(string message, Exception innerException) : } + /// + /// Initializes a new instance. + /// + /// + /// + public IkvmTaskException(SerializationInfo info, StreamingContext context) : + base(info, context) + { + + } + + } } diff --git a/src/IKVM.MSBuild.Tasks/IkvmTaskMessageException.cs b/src/IKVM.MSBuild.Tasks/IkvmTaskMessageException.cs index 886da2df43..918c456d3c 100644 --- a/src/IKVM.MSBuild.Tasks/IkvmTaskMessageException.cs +++ b/src/IKVM.MSBuild.Tasks/IkvmTaskMessageException.cs @@ -42,6 +42,17 @@ public IkvmTaskMessageException(Exception innerException, string messageResource this.messageArgs = messageArgs ?? throw new ArgumentNullException(nameof(messageArgs)); } + /// + /// Initializes a new instance. + /// + /// + /// + public IkvmTaskMessageException(SerializationInfo info, StreamingContext context) : + base(info, context) + { + + } + /// /// Gets the resource name of the message. ///