diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs index 5cb295cf49fe..d2b58cf229ce 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs @@ -16,6 +16,7 @@ internal static class PublishTestUtils new object[] { "netcoreapp3.1" }, new object[] { "net5.0" }, new object[] { "net6.0" }, + new object[] { "net7.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, }; @@ -24,6 +25,7 @@ internal static class PublishTestUtils { new object[] { "net5.0" }, new object[] { "net6.0" }, + new object[] { "net7.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, }; @@ -31,10 +33,11 @@ internal static class PublishTestUtils public static IEnumerable Net6Plus { get; } = new List { new object[] { "net6.0" }, + new object[] { "net7.0" }, new object[] { ToolsetInfo.CurrentTargetFramework }, }; #else -#error If building for a newer TFM, please update the values above +#error If building for a newer TFM, please update the values above to include both the old and new TFMs. #endif } }