"Not CLS Compliant" Warning in a Hello World example!

  • Thread starter Thread starter Chad
  • Start date Start date
C

Chad

Why am I getting the following warning? Note the example is complete. Both projects were created as Class Libraries.
Note that adding a Public Sub in RpClass1 does not remove the error.

Warning 3 'DalTest' is not CLS-compliant because it derives from 'RpClass1', which is not CLS-compliant. C:\MyDocs\vss\CollectDotNet\DataAccess\DalTest.vb 3 14 DataAccessLayer

'In DataAccessLayer project which references the RP project:


Public Class DalTest
Inherits RP.RpClass1 'that's it!
End Class

'In RP Project:

Public Class RpClass1
'No code at all!
End Class
 
What if you add something in RpClass1 ? An empty class might well be non
compliant...

--
Patrice

"Chad" <[email protected]> a écrit dans le message de [email protected]...
Why am I getting the following warning? Note the example is complete. Both
projects were created as Class Libraries.
Note that adding a Public Sub in RpClass1 does not remove the error.

Warning 3 'DalTest' is not CLS-compliant because it derives from 'RpClass1',
which is not CLS-compliant.
C:\MyDocs\vss\CollectDotNet\DataAccess\DalTest.vb 3 14 DataAccessLayer

'In DataAccessLayer project which references the RP project:


Public Class DalTest
Inherits RP.RpClass1 'that's it!
End Class

'In RP Project:

Public Class RpClass1
'No code at all!
End Class
 
Hmm, its something in the project which is calling the RP project, its
apparently not the RP project itself. If I create a new Project which
references RP, I do nopt get the error when I inherit from RP.RPClass1

:-(
 
Back
Top