Skip to content

Commit

Permalink
Remove netstandard2.0 and net47 targets
Browse files Browse the repository at this point in the history
Remvoe build targets for .NET Standard 2.0 and .NET Framework 4.7 since all versions of MdDocs now run only on .NET 6 and .NET 7

See-Also: #237
  • Loading branch information
ap0llo committed Jan 4, 2023
1 parent a502c7b commit b7f2645
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 2,835 deletions.
17 changes: 0 additions & 17 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<Project>

<!--
Disable nullable support on .NET Core 2.1, .NET Standard 2.0 and .NET Framework
because the BCL on these frameworks does not have nullable annotations
leading to false-positives in the nullable analysis.
Note: this is implemented as target instead of a plain property group in Directory.Build.props
becasue the condition requires $(TargetFrameworkIdentifier) to be set which it is not
at the time properties are evaluated
-->
<Target Name="DisableNullableSupportOnUnsupportedPlatforms" BeforeTargets="CoreCompile">
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' OR '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFrameworkIdentifier)' == '.NETFramework' ">
<Nullable>disable</Nullable>
<NoWarn>8632</NoWarn>
<!-- Suppress warning about nullable annotation in the source code although nullable is disabled-->
</PropertyGroup>

</Target>

<!--
Target required to make coverlet work with deterministic builds.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Loading

0 comments on commit b7f2645

Please sign in to comment.