Skip to content

Commit 5989ece

Browse files
authored
Suppress SYSLIB5005 for System.Formats.Nrbf as experimental (#12156)
1 parent 14324ba commit 5989ece

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

src/System.Private.Windows.Core/src/System.Private.Windows.Core.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
users won't be impacted. If some name becomes difficult to adapt to with the @ symbol we can
1414
cross that bridge when we hit it (if ever).
1515
-->
16-
<NoWarn>$(NoWarn);CS8981;CS3016</NoWarn>
16+
<NoWarn>$(NoWarn);CS8981</NoWarn>
1717
<!--
18-
We don't care about CLS compliance since everything here is internal and we want to match native types.
18+
CS3016: We don't care about CLS compliance since everything here is internal and we want to match native types.
19+
SYSLIB5005: System.Formats.Nrbf is experimental
1920
-->
20-
<NoWarn>$(NoWarn);CS3016</NoWarn>
21+
<NoWarn>$(NoWarn);CS3016;SYSLIB5005</NoWarn>
2122
<Deterministic>true</Deterministic>
2223
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
2324
<UsePublicApiAnalyzers>false</UsePublicApiAnalyzers>

src/System.Private.Windows.Core/tests/BinaryFormatTests/BinaryFormatTests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
SYSLIB0011: BinaryFormatter obsolete
3030
SYSLIB0050: Obsolete attribute
3131
SYSLIB0051: Formatters obsolete
32+
SYSLIB5005: System.Formats.Nrbf is experimental
3233
-->
33-
<NoWarn>$(NoWarn);CS1574;CS1580;CA1036;CA1051;CA1066;SYSLIB0011;SYSLIB0050;SYSLIB0051;xUnit1013</NoWarn>
34+
<NoWarn>$(NoWarn);CS1574;CS1580;CA1036;CA1051;CA1066;SYSLIB0011;SYSLIB0050;SYSLIB0051;SYSLIB5005;xUnit1013</NoWarn>
3435
</PropertyGroup>
3536

3637
<ItemGroup>

src/System.Windows.Forms.Primitives/tests/TestUtilities/System.Windows.Forms.Primitives.TestUtilities.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<AssemblyName>System.Windows.Forms.Primitives.TestUtilities</AssemblyName>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<RootNamespace>System</RootNamespace>
6+
<!--
7+
SYSLIB5005: System.Formats.Nrbf is experimental
8+
-->
9+
<NoWarn>$(NoWarn);SYSLIB5005</NoWarn>
610
</PropertyGroup>
711

812
<ItemGroup>

src/System.Windows.Forms/src/System.Windows.Forms.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
See https://github.com/dotnet/winforms/issues/4649
1212
-->
1313
<NoWarn>$(NoWarn);IL2026;IL2050;IL2057;IL2062;IL2067;IL2070;IL2072;IL2075;IL2077;IL2080;IL2092;IL2093;IL2094;IL2096;IL2111;IL2055</NoWarn>
14+
<!--
15+
SYSLIB5005: System.Formats.Nrbf is experimental
16+
-->
17+
<NoWarn>$(NoWarn);SYSLIB5005</NoWarn>
1418
<Win32Manifest>Resources\System\Windows\Forms\XPThemes.manifest</Win32Manifest>
1519
<Deterministic>true</Deterministic>
1620
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>

src/System.Windows.Forms/tests/UnitTests/System.Windows.Forms.Tests.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup>
13-
<NoWarn>$(NoWarn),1573,1591,1712,WFDEV001,SYSLIB0050,SYSLIB0051;</NoWarn>
13+
<!--
14+
SYSLIB0050: Formatter-based serialization is obsolete and should not be used
15+
SYSLIB0051: This API supports obsolete formatter-based serialization
16+
SYSLIB5005: System.Formats.Nrbf is experimental
17+
-->
18+
<NoWarn>$(NoWarn),1573,1591,1712,WFDEV001,SYSLIB0050,SYSLIB0051,SYSLIB5005</NoWarn>
1419
</PropertyGroup>
1520

1621
<ItemGroup>

0 commit comments

Comments
 (0)