AssemblyVersion
AssemblyVersion is a version identifier assigned to a .NET assembly that forms part of the assembly’s identity. The runtime uses this version during binding to locate and load the correct assembly, making it a key factor in compatibility and deployment. A typical AssemblyVersion follows a four-part format: major.minor.build.revision. The common intent is that changes to the major or minor parts signal breaking or significant changes, while build and revision can reflect smaller updates. Some toolchains historically allowed a wildcard in the build or revision components (for example, 1.0.*) to auto-increment, but this is not universally supported and can complicate binding in modern environments.
AssemblyVersion differs from AssemblyFileVersion and AssemblyInformationalVersion. AssemblyVersion is used by the runtime for binding and identity.
Specification and placement: in older projects, AssemblyVersion is declared in AssemblyInfo.cs with an attribute such as
Best practices emphasize stable major/minor versions for public APIs and careful management of binding to avoid