Files
CommandForge/Directory.Build.props
T
poli0981andClaude Opus 4.8 ef83c88083 build: add assembly metadata + Velopack --packAuthors
Đợt 1 of the post-v1.0 line (metadata + packaging).

- Directory.Build.props: inheritable package/assembly metadata
  (Product, Authors/Company=poli0981, Copyright, Description,
  RepositoryUrl/PackageProjectUrl, default Version 1.0.0).
  AssemblyVersion is intentionally NOT pinned so it follows Version
  (stamped from the git tag at publish), keeping the in-app About /
  Report-Bug version accurate.
- scripts/pack.ps1: pass --packTitle / --packAuthors to vpk pack
  (correct plural flag) and -p:FileVersion to dotnet publish.
- tests: AssemblyMetadataTests verifies Company / Product / Copyright.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 13:58:54 +07:00

49 lines
2.2 KiB
XML

<Project>
<!--
Shared build settings for all CommandForge projects.
Target frameworks are declared per-project (Domain/Application = net10.0 pure,
the Windows-facing projects = net10.0-windows) to hard-enforce the Clean
Architecture boundary (see docs/architectures.md, golden rule #4).
-->
<PropertyGroup>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<Deterministic>true</Deterministic>
<!-- Required so IDE0005 (remove unnecessary usings) runs at build time
(see dotnet/roslyn#41640). CS1591 (missing XML doc) is suppressed so we
don't force XML docs on every public member. -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<!--
Package / assembly metadata, inherited by every project. Surfaced in Settings -> About
and the Report-Bug template (via Assembly.GetName().Version), in the file properties, and
in the Velopack installer (scripts/pack.ps1 passes Authors via the packAuthors flag).
Version here is only the dev-build default; scripts/pack.ps1 overrides it at publish time
with the Version/FileVersion/InformationalVersion properties off the git tag. AssemblyVersion is
intentionally NOT pinned, so it follows Version and the in-app "App version" stays accurate
(binding-redirect churn is a non-issue for a self-contained app, not a shared library).
-->
<PropertyGroup>
<Product>CommandForge</Product>
<Authors>poli0981</Authors>
<Company>poli0981</Company>
<Copyright>Copyright © 2026 poli0981</Copyright>
<Description>Run complex Windows system commands through a visual, categorized interface.</Description>
<RepositoryUrl>https://github.com/poli0981/CommandForge</RepositoryUrl>
<PackageProjectUrl>https://github.com/poli0981/CommandForge</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<Version>1.0.0</Version>
</PropertyGroup>
</Project>