Skip to content

Commit

Permalink
Suppress 'WMC1006' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Dec 21, 2024
1 parent 48def30 commit 18bdd6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions samples/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@

<!-- Ignore platform compatibility warnings -->
<NoWarn>$(NoWarn);CA1416</NoWarn>

<!--
This ignores the following warning:
"WMC1006: Cannot resolve Assembly or Windows Metadata file '[...]\ComputeSharp.[...].dll'".
This happens because the XAML compiler tries to build the intermediate assembly before the
initial build of the referenced projects has completed, so those files are missing at that
time. This is fine, since normal builds will work just fine. Suppress it to remove noise.
-->
<NoWarn>$(NoWarn);WMC1006</NoWarn>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

<!-- Missing readonly modifier for readonly struct members (not needed in tests) -->
<NoWarn>$(NoWarn);IDE0251</NoWarn>

<!-- See notes in .props file in the sample projects directory -->
<NoWarn>$(NoWarn);WMC1006</NoWarn>
</PropertyGroup>
</Project>

0 comments on commit 18bdd6d

Please sign in to comment.