|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
"Not CLS Compliant" Warning in a Hello World example!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" <chad.dokmanov***@unisys.com> a écrit dans le message de news: e6ug4r$3v***@trsvr.tr.unisys.com...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 Note that adding a Public Sub in RpClass1 does not remove the error.
Show quote "Patrice" <scr***@chez.com> wrote in message news:e7JP0WVkGHA.1508@TK2MSFTNGP04.phx.gbl... > What if you add something in RpClass1 ? An empty class might well be non > compliant... > > -- > Patrice > > "Chad" <chad.dokmanov***@unisys.com> a écrit dans le message de news: > e6ug4r$3v***@trsvr.tr.unisys.com... > 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 Show quote :-( "Chad" <chad.dokmanov***@unisys.com> wrote in message news:e6uhge$4gg$1@trsvr.tr.unisys.com... > Note that adding a Public Sub in RpClass1 does not remove the error. > > "Patrice" <scr***@chez.com> wrote in message > news:e7JP0WVkGHA.1508@TK2MSFTNGP04.phx.gbl... >> What if you add something in RpClass1 ? An empty class might well be non >> compliant... >> >> -- >> Patrice >> >> "Chad" <chad.dokmanov***@unisys.com> a écrit dans le message de news: >> e6ug4r$3v***@trsvr.tr.unisys.com... >> 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 >> >> > > |
|||||||||||||||||||||||