5e6a29e8b1
Directory.Build.targets sets ApplicationIcon for each Exe/WinExe project under src/ (not tests, not non-Windows RIDs, not a project with its own), so a new Windows executable gets the icon with no project change. The path lives once, as ExecuteRIconPath in Directory.Build.props, which both MSIs now use for ARPPRODUCTICON too; the three per-project copies are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
2.6 KiB
XML
46 lines
2.6 KiB
XML
<Project>
|
|
|
|
<!--
|
|
Versioning (README, Versioning): a release is X.Y.Z (from its tag vX.Y.Z),
|
|
a build between releases X.Y.Z.N (N commits after the last release).
|
|
CI and the scripts compute the version ONCE (scripts/Get-Version.ps1) and
|
|
pass -p:UnifiedVersion=... (and -p:GitCommitShort=...) so every artifact
|
|
of a build shares one version. A build that is not handed one (IDE, plain
|
|
dotnet build) reads the same rule from git (build/Version.targets); without
|
|
git it stays 0.0.0.0, the development version nothing upgrades to.
|
|
-->
|
|
<PropertyGroup>
|
|
<VersionFromGit Condition="'$(VersionFromGit)' == '' And '$(UnifiedVersion)' == ''">true</VersionFromGit>
|
|
<UnifiedVersion Condition="'$(UnifiedVersion)' == ''">0.0.0.0</UnifiedVersion>
|
|
<!-- Assembly, file and MSI versions take four fields: a release X.Y.Z is X.Y.Z.0. -->
|
|
<UnifiedFileVersion>$(UnifiedVersion)</UnifiedFileVersion>
|
|
<UnifiedFileVersion Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(UnifiedVersion)', '^\d+\.\d+\.\d+$'))">$(UnifiedVersion).0</UnifiedFileVersion>
|
|
<Version>$(UnifiedVersion)</Version>
|
|
<AssemblyVersion>$(UnifiedFileVersion)</AssemblyVersion>
|
|
<FileVersion>$(UnifiedFileVersion)</FileVersion>
|
|
<!-- ProductVersion shown in file properties: version+shortcommit (semantic
|
|
version build metadata, which every comparison ignores). -->
|
|
<InformationalVersion Condition="'$(GitCommitShort)' != ''">$(UnifiedVersion)+$(GitCommitShort)</InformationalVersion>
|
|
<InformationalVersion Condition="'$(GitCommitShort)' == ''">$(UnifiedVersion)</InformationalVersion>
|
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
|
<Company>Endexa Solutions</Company>
|
|
<Copyright>Copyright (c) 2026 Endexa Solutions. All rights reserved.</Copyright>
|
|
<!-- The product icon (README, Branding): Directory.Build.targets embeds it in
|
|
every executable under src/, and both MSIs show it in Programs and Features. -->
|
|
<ExecuteRIconPath>$(MSBuildThisFileDirectory)assets\icons\app.ico</ExecuteRIconPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
|
<InvariantGlobalization>false</InvariantGlobalization>
|
|
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)build/Version.targets" Condition="Exists('$(MSBuildThisFileDirectory)build/Version.targets')" />
|
|
|
|
</Project>
|