Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
26 lines (22 loc) · 1.82 KB
/
Copy pathDirectory.Build.props
File metadata and controls
26 lines (22 loc) · 1.82 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
<!-- Copyright (c) Files Community. Licensed under the MIT License. -->
<Project>
<PropertyGroup>
<!-- Generic properties -->
<BaseTargetFramework>net10.0</BaseTargetFramework>
<DesktopTargetFramework>$(BaseTargetFramework)-desktop</DesktopTargetFramework>
<!-- Set the Linux-only Uno targets before NuGet imports Directory.Packages.props, including outer builds. -->
<TargetFramework Condition="'$(UsingUnoSdk)' == 'true' And '$(MSBuildProjectName)' == 'Files.App.UnoVirtualization' And '$(TargetFramework)' == '' And '$(TargetFrameworks)' == ''">$(DesktopTargetFramework)</TargetFramework>
<TargetFrameworks Condition="'$(UsingUnoSdk)' == 'true' And '$(TargetFramework)' == '' And '$(TargetFrameworks)' == ''">$(DesktopTargetFramework)</TargetFrameworks>
<UseUnoWayland Condition="'$(UseUnoWayland)' == ''">true</UseUnoWayland>
<!-- One effective switch for the Linux desktop target; the build machine's OS is irrelevant. -->
<FilesUseUnoWayland>false</FilesUseUnoWayland>
<FilesUseUnoWayland Condition="'$(UsingUnoSdk)' == 'true' And '$(UseUnoWayland)' == 'true' And ('$(TargetFramework)' == '$(DesktopTargetFramework)' Or ('$(TargetFramework)' == '' And '$(TargetFrameworks)' == '$(DesktopTargetFramework)')) And ('$(RuntimeIdentifier)' == '' Or $(RuntimeIdentifier.StartsWith('linux-')))">true</FilesUseUnoWayland>
<LangVersion>preview</LangVersion>
<!-- Uno's nullability annotations differ from WinUI's; keep nullable diagnostics as warnings on the Linux desktop build for now. -->
<WarningsAsErrors Condition="!$(TargetFramework.EndsWith('-desktop'))">nullable</WarningsAsErrors>
<!-- Use Microsoft.Testing.Platform -->
<EnableMSTestRunner>true</EnableMSTestRunner>
<!-- Use strict Roslyn compilation mode -->
<Features>strict</Features>
</PropertyGroup>
</Project>