Skip to content

Commit d214a3c

Browse files
committed
Suppress CS0436
1 parent f0750ec commit d214a3c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Directory.Build.targets

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@
1616
<!-- This is false for local development, but set to true in the CI system -->
1717
<TreatWarningsAsErrors Condition=" '$(TreatWarningsAsErrors)' == '' ">false</TreatWarningsAsErrors>
1818

19-
<!-- TODO: to be reenabled and all warnings fixed (https://github.com/dotnet/r9/issues/177) -->
19+
<!--
20+
TODO: to be resolved (https://github.com/dotnet/extensions/issues/4128)
21+
22+
warning CS0436: (NETCORE_ENGINEERING_TELEMETRY=Build) The type '__Attributes' in
23+
'Microsoft.Extensions.Options.SourceGeneration/Microsoft.Extensions.Options.Generators.Generator/Validators.g.cs' conflicts with the imported type
24+
'__Attributes' in 'Microsoft.Extensions.Telemetry, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
25+
Using the type defined in 'Microsoft.Extensions.Options.SourceGeneration/Microsoft.Extensions.Options.Generators.Generator/Validators.g.cs'.
26+
-->
27+
<NoWarn>$(NoWarn);CS0436</NoWarn>
28+
29+
<!-- TODO: to be re-enabled and all warnings fixed (https://github.com/dotnet/extensions/issues/4002) -->
2030
<NoWarn>$(NoWarn);IL2026;IL2087;IL2067;IL2075;IL2091;IL2072;IL2090;CA1825;IL2070;IL2098;IL2057</NoWarn>
2131

2232
<!-- Prevent analyzer crashes from stopping things -->
@@ -35,14 +45,14 @@
3545
<NoWarn Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net472' or '$(TargetFramework)' == 'netstandard2.0'">$(NoWarn);CA1062</NoWarn>
3646
</PropertyGroup>
3747

38-
<!-- .NET 8 specific configurations (https://github.com/dotnet/r9/issues/177) -->
48+
<!-- .NET 8 specific configurations (https://github.com/dotnet/extensions/issues/4126) -->
3949
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
4050
<!-- Ignore ASP0019: Use IHeaderDictionary.Append or the indexer to append or set headers. IDictionary.Add will throw an ArgumentException when attempting to add a duplicate key -->
4151
<NoWarn>$(NoWarn);ASP0019</NoWarn>
4252
</PropertyGroup>
4353

4454
<PropertyGroup>
45-
<!-- Ignore RS1024: Compare symbols correctly (https://github.com/dotnet/r9/issues/177) -->
55+
<!-- Ignore RS1024: Compare symbols correctly (https://github.com/dotnet/extensions/issues/4127) -->
4656
<NoWarn>$(NoWarn);RS1024</NoWarn>
4757
</PropertyGroup>
4858

0 commit comments

Comments
 (0)