Skip to content

Commit e889572

Browse files
committed
Add CsWinRT1028 suppression
1 parent a51b16d commit e889572

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Directory.Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1414
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1515
<NoWarn>$(NoWarn);Uno0001</NoWarn>
16+
<!--
17+
Suppress 'error CsWinRT1028: Class implements WinRT interfaces but isn't marked partial. ' for generated XamlMetaDataProvider.g.cs.
18+
Fix is expected to arrive in prerelease1 of Microsoft.WindowsAppSdk 1.6.
19+
Internal tracking: https://microsoft.visualstudio.com/OS/_workitems/edit/52541822/
20+
21+
Notice: This suppression affects CsWinRT1028 for all generated and non-generated code.
22+
Disable to check non-generated code for CsWinRT1028.
23+
-->
24+
<NoWarn>$(NoWarn);CsWinRT1028;</NoWarn>
1625
</PropertyGroup>
1726

1827
<Import Project="Windows.Toolkit.Common.props" />

0 commit comments

Comments
 (0)