-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
30 lines (28 loc) · 1.33 KB
/
Copy pathDirectory.Build.props
File metadata and controls
30 lines (28 loc) · 1.33 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
26
27
28
29
30
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
</PropertyGroup>
<!-- Libraries must stay trimming/AOT-clean so the app can publish with NativeAOT. -->
<PropertyGroup Condition="'$(OutputType)' != 'Exe' And '$(OutputType)' != 'WinExe' And '$(IsTestProject)' != 'true'">
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>
<!--
Process isolation: only WslcDesktop.Engine.Cli may start processes or pseudo-consoles.
Everything else gets the banned-API analyzer with BannedSymbols.txt.
-->
<PropertyGroup>
<AllowProcessApis Condition="'$(MSBuildProjectName)' == 'WslcDesktop.Engine.Cli'">true</AllowProcessApis>
</PropertyGroup>
<ItemGroup Condition="'$(AllowProcessApis)' != 'true'">
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" PrivateAssets="all" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)BannedSymbols.txt" />
</ItemGroup>
</Project>