diff --git a/src/Testing/src/TestPathUtilities.cs b/src/Testing/src/TestPathUtilities.cs index f982471f39..a5d83feeff 100644 --- a/src/Testing/src/TestPathUtilities.cs +++ b/src/Testing/src/TestPathUtilities.cs @@ -6,6 +6,7 @@ using System.IO; namespace Microsoft.AspNetCore.Testing { + [Obsolete("This API is obsolete and the pattern its usage encouraged should not be used anymore. See https://github.com/aspnet/Extensions/issues/1697 for details.")] public class TestPathUtilities { public static string GetRepoRootDirectory() diff --git a/src/Testing/test/TestPathUtilitiesTest.cs b/src/Testing/test/TestPathUtilitiesTest.cs index c77194a548..4a6a74ae9c 100644 --- a/src/Testing/test/TestPathUtilitiesTest.cs +++ b/src/Testing/test/TestPathUtilitiesTest.cs @@ -9,6 +9,9 @@ namespace Microsoft.AspNetCore.Testing { public class TestPathUtilitiesTest { + // Entire test pending removal - see https://github.com/aspnet/Extensions/issues/1697 +#pragma warning disable 0618 + [Fact] public void GetSolutionRootDirectory_ResolvesSolutionRoot() { @@ -27,5 +30,6 @@ namespace Microsoft.AspNetCore.Testing var exception = Assert.Throws(() => TestPathUtilities.GetSolutionRootDirectory("NotTesting")); Assert.Equal($"Solution file NotTesting.sln could not be found in {AppContext.BaseDirectory} or its parent directories.", exception.Message); } +#pragma warning restore 0618 } }