Skip to content

Gendarme.Rules.BadPractice.AvoidAssemblyVersionMismatchRule(git)

Sebastien Pouliot edited this page Mar 2, 2011 · 1 revision

AvoidAssemblyVersionMismatchRule

Assembly: Gendarme.Rules.BadPractice
Version: git

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

Source code

You can browse the latest source code of this rule on github.com

Clone this wiki locally