Skip to content

Commit

Permalink
Merge pull request #887 from Sergio0694/dev/suppress-wmc1006-warnings
Browse files Browse the repository at this point in the history
Suppress 'WMC1006' warnings
  • Loading branch information
Sergio0694 authored Dec 21, 2024
2 parents 48def30 + 18bdd6d commit bb7d395
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 bb7d395

Please sign in to comment.