-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
25 lines (25 loc) · 1.21 KB
/
Copy pathDirectory.Build.props
File metadata and controls
25 lines (25 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<Project>
<PropertyGroup>
<LangVersion>13.0</LangVersion>
<TargetFramework>net10.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Platforms>x64</Platforms>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<DebugType>embedded</DebugType>
</PropertyGroup>
<!--
When a WPF project (UseWPF) is built, MSBuild generates a throwaway temporary project
(its name ends with "_wpftmp") solely to compile the XAML markup. That temporary
compilation does not honor Metalama's programmatic diagnostic suppression, so the
PropertyChanged events introduced by NotifyPropertyChangedAttribute get flagged with
CS0067 ("event is never used") there - even though the aspect already suppresses CS0067
for the real project build. Suppress CS0067 ONLY inside these _wpftmp temporary projects.
Real project builds are unaffected and still report CS0067 for genuinely unused events.
-->
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('_wpftmp'))">
<NoWarn>$(NoWarn);CS0067</NoWarn>
</PropertyGroup>
</Project>