Skip to content

Commit

Permalink
Use Meziantou.Polyfill (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou authored Jun 21, 2023
1 parent ea8db0e commit f35b1c3
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 758 deletions.
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Polyfill" Version="1.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
24 changes: 0 additions & 24 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,6 @@
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<Compile Include="$(MSBuildThisFileDirectory)/common/AssemblyInfo.cs"
Link="Properties/AssemblyInfo.common.cs" />

<Compile Condition="'$(SkipLocalsInit)' == 'true'"
Include="$(MSBuildThisFileDirectory)/common/AssemblyInfo.SkipLocalsInit.cs"
Link="Properties/AssemblyInfo.SkipLocalsInit.cs" />

<Compile Condition="'$(CompatibilityRange)' == 'true'"
Include="$(MSBuildThisFileDirectory)/common/Range.cs"
Link="Properties/Range.cs" />

<Compile Condition="'$(CompatibilityRecord)' == 'true'"
Include="$(MSBuildThisFileDirectory)/common/IsExternalInit.cs"
Link="Properties/IsExternalInit.cs" />

<Compile Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net471' or '$(TargetFramework)' == 'net472'"
Include="$(MSBuildThisFileDirectory)/common/NullableAttributes.cs"
Link="Properties/NullableAttributes.cs" />

<Compile Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net471' or '$(TargetFramework)' == 'net472'"
Include="$(MSBuildThisFileDirectory)/common/PlatformAttributes.cs"
Link="Properties/PlatformAttributes.cs" />

<Compile Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net471' or '$(TargetFramework)' == 'net472' or '$(TargetFramework)' == 'net6.0'"
Include="$(MSBuildThisFileDirectory)/common/StringSyntaxAttribute.cs"
Link="Properties/StringSyntaxAttribute.cs" />
</ItemGroup>

<!-- Ensure the latest framework is a target of the project -->
Expand Down
24 changes: 0 additions & 24 deletions common/AssemblyInfo.SkipLocalsInit.cs

This file was deleted.

8 changes: 0 additions & 8 deletions common/IsExternalInit.cs

This file was deleted.

208 changes: 0 additions & 208 deletions common/NullableAttributes.cs

This file was deleted.

Loading

0 comments on commit f35b1c3

Please sign in to comment.