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

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
 
P

Patrice

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
 
C

Chad

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

:-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top