Skip to content

Commit f0fd3d7

Browse files
authored
Merge pull request #27943 from dotnet/marcpopMSFT-warnonoostargeting6.0.1xx
Expand existing EOL warning to target 5.0
2 parents 1fb9866 + 4c7675d commit f0fd3d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.EolTargetFrameworks.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Copyright (c) .NET Foundation. All rights reserved.
2020
receive servicing updates and security fixes.
2121
-->
2222
<ItemGroup>
23-
<_EolNetCoreTargetFrameworkVersions Include="1.0;1.1;2.0;2.1;2.2;3.0" />
23+
<_EolNetCoreTargetFrameworkVersions Include="1.0;1.1;2.0;2.1;2.2;3.0;5.0" />
2424
</ItemGroup>
2525

2626
<Target Name="_CheckForEolTargetFrameworks" AfterTargets="_CheckForUnsupportedNETCoreVersion"

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetEolFrameworks.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public GivenThatWeWantToTargetEolFrameworks(ITestOutputHelper log) : base(log)
2323
[InlineData("netcoreapp1.0")]
2424
[InlineData("netcoreapp3.0")]
2525
[InlineData("netcoreapp2.1")]
26+
[InlineData("net5.0")]
2627
public void It_warns_that_framework_is_out_of_support(string targetFrameworks)
2728
{
2829
var testProject = new TestProject()

0 commit comments

Comments
 (0)