It is legal to have C# classes which full names differ just by case. E.g. X.Y.ClassName
and x.y.classname
. However, I would like to ban the case only differences within the same assembly.
The only way I can think of to implement it is by adding an AfterBuild
target that would run custom task to reflect on the just built assembly using something like Mono.Cecil
. Which is quite involved.
I am curious if there is an easier way.