From e1a9d3f7e9afd8f25701abdfa1ed318e9887e994 Mon Sep 17 00:00:00 2001
From: Medeni Baykal <433724+Haplois@users.noreply.github.com>
Date: Mon, 1 Feb 2021 20:05:16 +0100
Subject: [PATCH 1/2] Fixing AdapterUtilities dependency version
---
.../nuspec/Microsoft.TestPlatform.AdapterUtilities.nuspec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/package/nuspec/Microsoft.TestPlatform.AdapterUtilities.nuspec b/src/package/nuspec/Microsoft.TestPlatform.AdapterUtilities.nuspec
index 08cd5b6528..9ac341631d 100644
--- a/src/package/nuspec/Microsoft.TestPlatform.AdapterUtilities.nuspec
+++ b/src/package/nuspec/Microsoft.TestPlatform.AdapterUtilities.nuspec
@@ -29,7 +29,7 @@
-
+
From 1eb3d5659427d1c75a3d36b317a3d0bbb79cfcca Mon Sep 17 00:00:00 2001
From: Medeni Baykal <433724+Haplois@users.noreply.github.com>
Date: Wed, 3 Feb 2021 23:44:11 +0100
Subject: [PATCH 2/2] Marked `InvalidManagedNameException` as serializable.
---
.../InvalidManagedNameException.cs | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/Microsoft.TestPlatform.AdapterUtilities/ManagedNameUtilities/InvalidManagedNameException.cs b/src/Microsoft.TestPlatform.AdapterUtilities/ManagedNameUtilities/InvalidManagedNameException.cs
index 1899e65c96..3cbbaf86f5 100644
--- a/src/Microsoft.TestPlatform.AdapterUtilities/ManagedNameUtilities/InvalidManagedNameException.cs
+++ b/src/Microsoft.TestPlatform.AdapterUtilities/ManagedNameUtilities/InvalidManagedNameException.cs
@@ -5,8 +5,23 @@ namespace Microsoft.TestPlatform.AdapterUtilities.ManagedNameUtilities
{
using System;
- public class InvalidManagedNameException : Exception
+#if !NETSTANDARD1_0 && !WINDOWS_UWP
+ using System.Runtime.Serialization;
+#endif
+
+#if !NETSTANDARD1_0 && !WINDOWS_UWP
+ [Serializable]
+#endif
+ public class InvalidManagedNameException :
+ Exception
+#if !NETSTANDARD1_0 && !WINDOWS_UWP
+ , ISerializable
+#endif
{
public InvalidManagedNameException(string message) : base(message) { }
+
+#if !NETSTANDARD1_0 && !WINDOWS_UWP
+ protected InvalidManagedNameException(SerializationInfo info, StreamingContext context) : base(info, context) { }
+#endif
}
}
\ No newline at end of file