Skip to content

Commit ae42ea8

Browse files
committed
Fix eventlog tests
1 parent 53eb2af commit ae42ea8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/libraries/Directory.Build.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@
174174
</ItemGroup>
175175

176176
<!-- Adds polyfills on non-.NETCoreApp builds -->
177-
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj' and
177+
<ItemGroup Condition="'$(SkipIncludePolyfills)' != 'true' and
178+
'$(MSBuildProjectExtension)' == '.csproj' and
178179
'$(IsTestProject)' != 'true' and
179180
'$(IsTestSupportProject)' != 'true' and
180181
'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">

src/libraries/System.Diagnostics.EventLog/src/Messages/System.Diagnostics.EventLog.Messages.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
<!-- Override the parent Directory.Build.props -->
77
<SupportedOSPlatforms />
88
<EnableLibraryImportGenerator>false</EnableLibraryImportGenerator>
9+
<SkipIncludePolyfills>true</SkipIncludePolyfills>
10+
<SkipIncludeNullableAttributes>true</SkipIncludeNullableAttributes>
911
</PropertyGroup>
1012
</Project>

0 commit comments

Comments
 (0)