Skip to content

Commit 2806ce5

Browse files
Limit polyfill to only lock type (#86)
1 parent 5fedd02 commit 2806ce5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
<IsPackable>false</IsPackable>
1717
</PropertyGroup>
1818

19+
<PropertyGroup Label="Enabled Polyfills">
20+
<!--https://github.com/meziantou/Meziantou.Polyfill?tab=readme-ov-file#supported-polyfills-->
21+
<Polyfill></Polyfill>
22+
<Polyfill>$(Polyfill)|T:System.Threading.Lock</Polyfill>
23+
<MeziantouPolyfill_IncludedPolyfills>$(Polyfill)</MeziantouPolyfill_IncludedPolyfills>
24+
</PropertyGroup>
25+
1926
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
2027
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2128
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>

0 commit comments

Comments
 (0)