-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
84 lines (77 loc) · 4.06 KB
/
Directory.Build.props
File metadata and controls
84 lines (77 loc) · 4.06 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<Project>
<PropertyGroup Label="Build">
<TargetFramework>net10.0</TargetFramework>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest-recommended</AnalysisLevel>
</PropertyGroup>
<!--
All build output is routed to artifacts/{app|tests}/{ProjectName}/{bin|obj}/{Configuration}/
Category is picked from the project's parent folder (srcs/ → app, tests/ → tests).
-->
<PropertyGroup Label="Artifacts layout">
<_ArtifactsRoot>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)', 'artifacts'))</_ArtifactsRoot>
<_InTests>$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory),
'[\\/]tests[\\/]'))</_InTests>
<_ArtifactsCategory Condition="'$(_InTests)' == 'True'">tests</_ArtifactsCategory>
<_ArtifactsCategory Condition="'$(_ArtifactsCategory)' == ''">app</_ArtifactsCategory>
<_ArtifactsProjectRoot>$([MSBuild]::NormalizePath('$(_ArtifactsRoot)',
'$(_ArtifactsCategory)', '$(MSBuildProjectName)'))</_ArtifactsProjectRoot>
<BaseOutputPath>$(_ArtifactsProjectRoot)\bin\</BaseOutputPath>
<BaseIntermediateOutputPath>$(_ArtifactsProjectRoot)\obj\</BaseIntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Label="Package">
<VersionPrefix>0.1.4</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
<Version>$(VersionPrefix)-$(VersionSuffix)</Version>
<PackageVersion>$(Version)</PackageVersion>
<Authors>kYaRick</Authors>
<Company>kYaRick</Company>
<Product>preflight.xml</Product>
<Description>Visual builder for Windows autounattend.xml - offline, in your browser.</Description>
<AssemblyTitle>$(Product)</AssemblyTitle>
<Copyright>Copyright © $([System.DateTime]::UtcNow.Year) kYaRick</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/kYaRick/preflight.xml</PackageProjectUrl>
<RepositoryUrl>https://github.com/kYaRick/preflight.xml.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<PropertyGroup Label="SourceLink">
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<!--
Branding paths shared across projects. The .ico in srcs/Preflight.App/wwwroot
is the canonical favicon shipped with the Blazor app; reusing it here keeps
the desktop executable, taskbar entry, and web favicon visually identical.
-->
<PropertyGroup Label="Branding">
<PreflightIconPath>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)', 'srcs',
'Preflight.App', 'wwwroot', 'favicon.ico'))</PreflightIconPath>
</PropertyGroup>
<!--
Desktop (WPF) defaults. Lives here so adding a sibling desktop project later
inherits the same target framework, output type, icon, and minimum window
metadata without duplicating boilerplate.
-->
<!--
AssemblyName == final exe name == Velopack PackId == Velopack mainExe.
Keeping all four aligned means the installed app appears in the
Start menu and Programs list under the same name as the live PWA.
Windows hides the trailing ".exe" so users see "preflight.xml" -
the dotted middle is intentional, not a bug.
-->
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'Preflight.Desktop'" Label="Desktop">
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<AssemblyName>preflight.xml</AssemblyName>
<ApplicationIcon>$(PreflightIconPath)</ApplicationIcon>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
</Project>