Skip to content

Commit 601d388

Browse files
shimatclaude
andcommitted
Fix CS7034: pin AssemblyVersion/FileVersion in OpenCvSharp.Analyzers.csproj
The repo's CI passes -p:Version=4.13.0.YYYYMMDD at pack time. That date component (e.g. 20260524) exceeds ushort.MaxValue (65535), which is the limit for each component of an AssemblyVersion. Setting AssemblyVersion and FileVersion to a fixed 1.0.0.0 avoids the CS7034 error while leaving the NuGet package Version free to use the date-based scheme. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f4d35ad commit 601d388

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/OpenCvSharp.Analyzers/OpenCvSharp.Analyzers.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<Nullable>enable</Nullable>
77
<RootNamespace>OpenCvSharp.Analyzers</RootNamespace>
88
<AssemblyName>OpenCvSharp.Analyzers</AssemblyName>
9+
<!-- AssemblyVersion must be a valid major.minor.build.revision (each ≤ 65535).
10+
The repo uses date-based Version (e.g. 4.13.0.20260524) which exceeds that limit,
11+
so we pin the assembly version independently. -->
12+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
13+
<FileVersion>1.0.0.0</FileVersion>
914
<IsRoslynComponent>true</IsRoslynComponent>
1015
<!-- EnforceExtendedAnalyzerRules ensures the analyzer follows Roslyn analyzer best practices -->
1116
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>

0 commit comments

Comments
 (0)