Skip to content

Commit b16ca58

Browse files
marcpopMSFTgithub-actions
authored andcommitted
Disable the EOL check for multiple tests
1 parent 4f177aa commit b16ca58

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,8 @@ public void EnableSingleFile_warns_when_expected_for_not_correctly_multitargeted
747747
testProject.AdditionalProperties["CheckEolTargetFramework"] = "false"; // Silence warning about targeting EOL TFMs
748748
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFrameworks)
749749
.WithProjectChanges(AddTargetFrameworkAliases);
750-
750+
testAsset.AdditionalProperties["CheckEolTargetFramework"] = "false"; // Silence warning about targeting EOL TFMs
751+
751752
var buildCommand = new BuildCommand(testAsset);
752753
var resultAssertion = buildCommand.Execute("/bl:my.binlog")
753754
.Should().Pass();

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ public void IsAotCompatible_warns_when_expected_for_not_correctly_multitarget_li
649649
testProject.AdditionalProperties["CheckEolTargetFramework"] = "false"; // Silence warning about targeting EOL TFMs
650650
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFrameworks)
651651
.WithProjectChanges(AddTargetFrameworkAliases);
652+
testAsset.AdditionalProperties["CheckEolTargetFramework"] = "false"; // Silence warning about targeting EOL TFMs
652653

653654
var buildCommand = new BuildCommand(testAsset);
654655
var resultAssertion = buildCommand.Execute()

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ public void IsTrimmable_warns_when_expected_for_not_correctly_multitargeted_libr
200200
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFrameworks)
201201
.WithProjectChanges(AddTargetFrameworkAliases);
202202

203+
testAsset.AdditionalProperties["CheckEolTargetFramework"] = "false"; // Silence warning about targeting EOL TFMs
204+
203205
var buildCommand = new BuildCommand(testAsset);
204206
var resultAssertion = buildCommand.Execute()
205207
.Should().Pass();

test/dotnet-new.Tests/CommonTemplatesTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ public async Task FeaturesSupport(
386386
string finalProjectName = Path.Combine(projectDir, $"{projName}.{extension}");
387387

388388
Dictionary<string, string> environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() };
389+
environmentUnderTest["CheckEolTargetFramework"] = false.ToString();
389390
TestContext.Current.AddTestEnvironmentVariables(environmentUnderTest);
390391

391392
TemplateVerifierOptions options = new TemplateVerifierOptions(templateName: name)

0 commit comments

Comments
 (0)