All rules
CA1016Design Enabled by default: As suggestion
Mark assemblies with AssemblyVersionAttribute
Mark assemblies with AssemblyVersionAttribute
Microsoft docsDescription
The identity of an assembly is composed of the following information:
- Assembly name
- Version number
- Culture
- Public key (for strongly named assemblies).
.NET uses the version number to uniquely identify an assembly and to bind to types in strongly named assemblies. The version number is used together with version and publisher policy. By default, applications run only with the assembly version with which they were built.
Cause
The assembly does not have a version number.
How to fix violations
To fix a violation of this rule, add a version number to the assembly by using the System.Reflection.AssemblyVersionAttribute attribute.
Example
using System;
using System.Reflection;
[assembly: AssemblyVersionAttribute("4.3.2.1")]
namespace DesignLibrary {}When to suppress
Do not suppress a warning from this rule for assemblies that are used by third parties or in a production environment.
Your vote
Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0