Wednesday, April 20, 2011

Argument type 'FluentNHibernate.Mapping.IProperty' is not CLS-compliant

Name is not compliant? Layout? What?

Do you have ideas what exactly could generate this message? Any ideas are welcome. I have bunch of such warning.

Actually, I am open to remove CLSCompliant(true), but I want to know root cause.

From stackoverflow
  • You might have a member that uses the same name with different casing - e.g. iProperty. Or perhaps you have two arguments that differ only in casing.

    Mike Chaliy : Thanks, but this is not a case in my situation.
  • Is it not just as simple as the Fluent.NHibernate assembly not being CLSCompliant? The IProperty type isn't compliant, therefore a method taking it as a parameter isn't compliant.

    Mike Chaliy : Yeh! This is the case! Thank you very much!

0 comments:

Post a Comment