From 013ad152b900fed62102c0383e4b59fd02c6540f Mon Sep 17 00:00:00 2001 From: "Simon Zhao (BEYONDSOFT CONSULTING INC)" Date: Fri, 26 Sep 2025 10:09:28 +0800 Subject: [PATCH 1/3] Skip failure test cases due to GenerateBundle issue --- .../GivenThatWeWantToPublishAnAotApp.cs | 2 +- .../GivenThatWeWantToPublishIncrementally.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs index a4cfbcb6d1f6..f9fe8bb90067 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs @@ -517,7 +517,7 @@ public void NativeAot_hw_fails_with_unsupported_target_rid(string targetFramewor } } - [RequiresMSBuildVersionTheory("17.0.0.32901")] + [RequiresMSBuildVersionTheory("17.0.0.32901", Skip="https://github.com/dotnet/sdk/issues/50993")] [InlineData(ToolsetInfo.CurrentTargetFramework)] public void NativeAot_hw_fails_with_unsupported_host_rid(string targetFramework) { diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs index c47c60089692..5373d6d043c9 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs @@ -134,7 +134,7 @@ public void It_cleans_between_single_file_publishes() CheckPublishOutput(publishDir, expectedSingleExeFiles.Append(testProject.Name + ".dll"), null); } - [Fact] + [Fact(Skip="https://github.com/dotnet/sdk/issues/50993")] public void It_cleans_before_trimmed_single_file_publish() { var testProject = new TestProject() From 1516707e462275184a118192e98163b3bbf18cb0 Mon Sep 17 00:00:00 2001 From: "Simon Zhao (BEYONDSOFT CONSULTING INC)" Date: Fri, 26 Sep 2025 10:16:56 +0800 Subject: [PATCH 2/3] Update the issue id --- .../GivenThatWeWantToPublishAnAotApp.cs | 2 +- .../GivenThatWeWantToPublishIncrementally.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs index f9fe8bb90067..dabb0ebfff68 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs @@ -517,7 +517,7 @@ public void NativeAot_hw_fails_with_unsupported_target_rid(string targetFramewor } } - [RequiresMSBuildVersionTheory("17.0.0.32901", Skip="https://github.com/dotnet/sdk/issues/50993")] + [RequiresMSBuildVersionTheory("17.0.0.32901", Skip= "https://github.com/dotnet/sdk/issues/50784")] [InlineData(ToolsetInfo.CurrentTargetFramework)] public void NativeAot_hw_fails_with_unsupported_host_rid(string targetFramework) { diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs index 5373d6d043c9..52f470bdd1df 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs @@ -134,7 +134,7 @@ public void It_cleans_between_single_file_publishes() CheckPublishOutput(publishDir, expectedSingleExeFiles.Append(testProject.Name + ".dll"), null); } - [Fact(Skip="https://github.com/dotnet/sdk/issues/50993")] + [Fact(Skip= "https://github.com/dotnet/sdk/issues/50784")] public void It_cleans_before_trimmed_single_file_publish() { var testProject = new TestProject() From 63216ed58bd746a85a1767168a5af6762d1b3275 Mon Sep 17 00:00:00 2001 From: "Simon Zhao (BEYONDSOFT CONSULTING INC)" Date: Fri, 26 Sep 2025 11:31:49 +0800 Subject: [PATCH 3/3] Add skipped test case --- .../GivenThatWeWantToPublishIncrementally.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs index 52f470bdd1df..47b56bb605b1 100644 --- a/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs +++ b/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs @@ -50,7 +50,7 @@ public void It_cleans_before_single_file_publish() CheckPublishOutput(publishDir, expectedSingleExeFiles.Append("UserData.txt"), expectedNonSingleExeFiles); } - [Fact] + [Fact(Skip= "https://github.com/dotnet/sdk/issues/50784")] public void It_cleans_between_renames() { var testProject = new TestProject()