Commit fff24ab
Centralize and fix assembly versioning (#1704)
Add src/Directory.Build.props to set AssemblyVersion and FileVersion
consistently across all library projects:
- AssemblyVersion is pinned to 4.0.0.0 (major only). Because OpenCvSharp
is a strong-named assembly, changing AssemblyVersion on every release
would break .NET Framework consumers that lack binding redirects.
- FileVersion is also pinned to 4.0.0.0. The date-based 4th component
used in NuGet package versions (e.g. 20260530) exceeds the 65535
per-component limit of the Windows FILEVERSION PE resource, so it
cannot be used directly.
- InformationalVersion is left to the .NET SDK default, which sets it
to the full $(Version) string including pre-release suffix and commit
SHA (e.g. "4.13.0.20260530-beta+<sha>"). This is the human-readable
version visible in file properties ("Product version") and most tooling,
and is automatically correct whenever `dotnet pack -p:Version=...` is used.
Remove the now-redundant hardcoded AssemblyVersion/FileVersion entries
from OpenCvSharp.csproj, OpenCvSharp.Extensions.csproj, and
OpenCvSharp.WpfExtensions.csproj.
OpenCvSharp.Analyzers.csproj is intentionally unchanged; it already pins
to 1.0.0.0 at the project level with an explanatory comment.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 66bd807 commit fff24ab
5 files changed
Lines changed: 29 additions & 12 deletions
File tree
- docs
- src
- OpenCvSharp.Extensions
- OpenCvSharp.WpfExtensions
- OpenCvSharp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
0 commit comments