Skip to content

Commit

Permalink
For .NET5.0 and .NETCoreApp 3.1.0, disable CheckEolTargetFramework, e…
Browse files Browse the repository at this point in the history
…nable SuppressTfmSupportBuildWarnings
  • Loading branch information
thohng committed Mar 21, 2024
1 parent 2ddd0f3 commit 54eb4b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/ConsoleApp/ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(NETCOREAPP3_1)' == true Or '$(NET5_0)' == true">
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<UserSecretsId>netlah-config-test-5f1c15e5acb0</UserSecretsId>
</PropertyGroup>

<PropertyGroup Condition="'$(NETCOREAPP3_1)' == true Or '$(NET5_0)' == true">
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>

<ItemGroup>
<Content Include="appsettings.*" CopyToOutputDirectory="PreserveNewest" />
<Content Include="New-Location\*.json" CopyToOutputDirectory="PreserveNewest" />
Expand Down

0 comments on commit 54eb4b9

Please sign in to comment.