Skip to content

Commit 08e04b6

Browse files
committed
Clean up projections Directory.Build.props
Remove several obsolete/strict build properties and consolidate projection settings. This removes TreatWarningsAsErrors, DisableRuntimeMarshalling, CsWinRTAotOptimizerEnabled, EnableTrimAnalyzer, IsTrimmable and IsAotCompatible, adds a "Projection settings" comment, and moves SimulateCsWinRTNugetReference into the projections PropertyGroup for clearer organization.
1 parent 7558aa1 commit 08e04b6

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
2-
32
<PropertyGroup>
4-
<SimulateCsWinRTNugetReference>true</SimulateCsWinRTNugetReference>
5-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6-
73
<!--
84
Don't fail builds for well known warnings in projections that are lower priority:
95
@@ -22,16 +18,10 @@
2218
<!-- Generated projections surface evaluation-only ('[Experimental]') Windows Runtime APIs, so 'CS8305' is expected -->
2319
<NoWarn>$(NoWarn);CS8305</NoWarn>
2420

25-
<!-- Projections should not require runtime marshalling. -->
26-
<DisableRuntimeMarshalling>True</DisableRuntimeMarshalling>
27-
<CsWinRTAotOptimizerEnabled Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) >= 6">Auto</CsWinRTAotOptimizerEnabled>
28-
29-
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
30-
<IsTrimmable>true</IsTrimmable>
31-
<IsAotCompatible>true</IsAotCompatible>
21+
<!-- Projection settings -->
3222
<CsWinRTGenerateReferenceProjection>true</CsWinRTGenerateReferenceProjection>
23+
<SimulateCsWinRTNugetReference>true</SimulateCsWinRTNugetReference>
3324
</PropertyGroup>
3425

3526
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
36-
3727
</Project>

0 commit comments

Comments
 (0)