Skip to content

Gendarme.Rules.BadPractice.AvoidAssemblyVersionMismatchRule(2.10)

Sebastien Pouliot edited this page Feb 9, 2011 · 3 revisions

AvoidAssemblyVersionMismatchRule

Assembly: Gendarme.Rules.BadPractice
Version: 2.10

Description

This rule checks that the AssemblyVersion matches the AssemblyFileVersion when both are present inside an assembly. Having different version numbers in both attributes can be confusing once the application is deployed.

Examples

Bad example:

[assembly: AssemblyVersion ("2.2.0.0")]
[assembly: AssemblyFileVersion ("1.0.0.0")]

Good example:

[assembly: AssemblyVersion ("2.2.0.0")]
[assembly: AssemblyFileVersion ("2.2.0.0")]

Notes

  • This rule is available since Gendarme 2.2
Clone this wiki locally