diff --git a/Src/Newtonsoft.Json.Tests/Documentation/JsonSchemaTests.cs b/Src/Newtonsoft.Json.Tests/Documentation/JsonSchemaTests.cs
index 4854f16d..224f777b 100644
--- a/Src/Newtonsoft.Json.Tests/Documentation/JsonSchemaTests.cs
+++ b/Src/Newtonsoft.Json.Tests/Documentation/JsonSchemaTests.cs
@@ -24,6 +24,7 @@
#endregion
#if !(NET35 || NET20 || PORTABLE || ASPNETCORE50)
+#pragma warning disable 618
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -185,5 +186,5 @@ namespace Newtonsoft.Json.Tests.Documentation
}
}
}
-
+#pragma warning restore 618
#endif
\ No newline at end of file
diff --git a/Src/Newtonsoft.Json.Tests/Newtonsoft.Json.Tests.csproj b/Src/Newtonsoft.Json.Tests/Newtonsoft.Json.Tests.csproj
index 81a4de5f..fe518cc8 100644
--- a/Src/Newtonsoft.Json.Tests/Newtonsoft.Json.Tests.csproj
+++ b/Src/Newtonsoft.Json.Tests/Newtonsoft.Json.Tests.csproj
@@ -83,6 +83,7 @@
+