Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
42 lines (40 loc) · 2.71 KB
/
Copy pathDirectory.Build.props
File metadata and controls
42 lines (40 loc) · 2.71 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
31
32
33
34
35
36
37
38
39
40
41
42
<Project>
<PropertyGroup>
<!-- Single shared version for the UI, service, and installer (release plan P0-5). CI overrides it
with -p:Version=0.1.<run-number> (ci.yml VERSION_PREFIX must track the major.minor here);
local builds carry the .0 patch. About reads it via AssemblyInformationalVersion. -->
<Version>0.2.2</Version>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- The Linux CI job restores the app head without pinning a TFM (pinning leaks into referenced
projects — see the note in ci.yml), so restore has to evaluate the head's windows TFM on a Linux
runner. That fails with NETSDK1100 unless this is set. It only permits EVALUATING and restoring
the windows flavor cross-OS; nothing Windows-only is built or shipped from a Linux publish.
Core already set this locally for the ubuntu test job; hoisted here so the head gets it too. -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<LangVersion>preview</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!--
Adding NoWarn to remove build warnings
NU1507: Warning when there are multiple package sources when using CPM with no source mapping
NETSDK1201: Warning that specifying RID won't create self containing app
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk)
-->
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn>
</PropertyGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' != 'SubZeroFramework.Analyzers' and Exists('$(MSBuildThisFileDirectory)SubZeroFramework.Analyzers\SubZeroFramework.Analyzers.csproj')">
<ProjectReference Include="$(MSBuildThisFileDirectory)SubZeroFramework.Analyzers\SubZeroFramework.Analyzers.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="all" />
<!--
XAML reaches an analyzer only as an additional file. SZF0014 needs it: a binding's source type
lives in C# and its target type lives in markup, and neither half is wrong on its own.
obj/ and bin/ are excluded so generated copies are not analysed a second time, which would report
every finding twice and point the second one at a path nobody edits.
-->
<AdditionalFiles Include="$(MSBuildProjectDirectory)\**\*.xaml"
Exclude="$(MSBuildProjectDirectory)\obj\**\*.xaml;$(MSBuildProjectDirectory)\bin\**\*.xaml" />
</ItemGroup>
</Project>