Skip to content

Commit 2a19e5d

Browse files
Suppress IDE0031 (#13260)
* Suppress IDE0031 warnings in VMR * Update src/System.Private.Windows.Core/src/System.Private.Windows.Core.csproj Co-authored-by: Tanya Solyanik <[email protected]> --------- Co-authored-by: Tanya Solyanik <[email protected]>
1 parent b5bb513 commit 2a19e5d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
SYSLIB5005: System.Formats.Nrbf is experimental
2222
-->
2323
<NoWarn>$(NoWarn);CS3016;SYSLIB5005</NoWarn>
24+
<!-- Reenable when SDK and dotnet Preview 4 versions flow into this repo and we are in sync with VMR. -->
25+
<!-- tracking https://github.com/dotnet/winforms/issues/13261 -->
26+
<NoWarn Condition="'$(DotNetBuild)' == 'true'">$(NoWarn);IDE0031</NoWarn>
2427
<Deterministic>true</Deterministic>
2528
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
2629
<UsePublicApiAnalyzers>false</UsePublicApiAnalyzers>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
SYSLIB5005: System.Formats.Nrbf is experimental
1616
-->
1717
<NoWarn>$(NoWarn);SYSLIB5005</NoWarn>
18+
<!-- Reenable when fixes are made for IDE0031 warnings that VMR treats as errors. -->
19+
<NoWarn Condition="'$(DotNetBuild)' == 'true'">$(NoWarn);IDE0031</NoWarn>
1820
<Win32Manifest>Resources\System\Windows\Forms\XPThemes.manifest</Win32Manifest>
1921
<Deterministic>true</Deterministic>
2022
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>

0 commit comments

Comments
 (0)