From 3283c8d473e2df58eccde38262573c6efe3c45ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Wed, 24 Aug 2022 18:26:51 +0200 Subject: [PATCH] Make TraitCollection serializable in all supported TFMs (#3963) --- src/Microsoft.TestPlatform.ObjectModel/TraitCollection.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Microsoft.TestPlatform.ObjectModel/TraitCollection.cs b/src/Microsoft.TestPlatform.ObjectModel/TraitCollection.cs index 6a886d3fb2..1504dc5237 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/TraitCollection.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/TraitCollection.cs @@ -11,9 +11,7 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel; /// /// Class that holds collection of traits /// -#if NETFRAMEWORK // REVIEW ME: This could be enabled for netcore and netstandard [Serializable] -#endif public class TraitCollection : IEnumerable { internal const string TraitPropertyId = "TestObject.Traits"; @@ -27,9 +25,7 @@ public class TraitCollection : IEnumerable #pragma warning restore 618 typeof(TestObject)); -#if NETFRAMEWORK // REVIEW ME: This could be enabled for netcore and netstandard [NonSerialized] -#endif private readonly TestObject _testObject; internal TraitCollection(TestObject testObject)