Why is this an issue?
If no AssemblyVersionAttribute
is provided, the same default version will be used for every build. Since the version number is used by
The .NET Framework to uniquely identify an assembly this can lead to broken dependencies.
Noncompliant code example
Imports System.Reflection
<Assembly: AssemblyTitle("MyAssembly")> ' Noncompliant
Namespace MyLibrary
End Namespace
Compliant solution
Imports System.Reflection
<Assembly: AssemblyTitle("MyAssembly")>
<Assembly: AssemblyVersion("1.1.125.0")>
Namespace MyLibrary
End Namespace
Resources
Microsoft documentation - Assembly Versioning