[Mono-devel-list] Type of '...' is not CLS-compliant
Ben Maurer
bmaurer at users.sourceforge.net
Sat Apr 10 10:32:43 EDT 2004
Hello,
You need to make sure all the types you use are maked [CLSCompliant].
Please look at
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconwritingcls-compliantcode.asp?frame=true
Miguel, how would you feel about linking to that doc in CLS error
messages?
-- Ben
On Sat, 2004-04-10 at 09:46, Carlos Guzman Alvarez wrote:
> Hello:
>
> I'm trying to build the PgSqlClient sources
> (pgsqlclient.sourceforge.net) with the latest mono from CVS, i'm getting
> this on build (all builds fine with .NET in Windows):
>
> ./PostgreSql.Data.PgSqlClient/source/PgConnection.cs(45) error CS3003:
> Type of 'PostgreSql.Data.PgSqlClient.PgConnection.ServerCertValidation'
> is not CLS-compliant
> ./PostgreSql.Data.PgSqlClient/source/PgConnection.cs(46) error CS3003:
> Type of 'PostgreSql.Data.PgSqlClient.PgConnection.ClientCertSelection'
> is not CLS-compliant
> ./PostgreSql.Data.PgSqlClient/source/PgConnection.cs(47) error CS3003:
> Type of 'PostgreSql.Data.PgSqlClient.PgConnection.PrivateKeySelection'
> is not CLS-compliant
>
> The declarations:
>
> public event CertificateValidationCallback ServerCertValidation;
> public event CertificateSelectionCallback ClientCertSelection;
> public event PrivateKeySelectionCallback PrivateKeySelection;
>
>
> The callbacks are defined in the Mono.Security assembly as:
>
> public delegate bool CertificateValidationCallback(
> X509Certificate certificate,
> int[] certificateErrors);
>
> public delegate X509Certificate CertificateSelectionCallback(
> X509CertificateCollection clientCertificates,
> X509Certificate serverCertificate, string targetHost,
> X509CertificateCollection serverRequestedCertificates);
>
> public delegate AsymmetricAlgorithm PrivateKeySelectionCallback(
> X509Certificate certificate,
> string targetHost);
>
>
> Any idea on how to solve this ??
>
>
> --
> Best regards
>
> Carlos Guzmán Álvarez
> Vigo-Spain
>
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list