364,112 Members | 2191 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Not CLS-compliant warning...

Glenn Palomar
P: n/a
Glenn Palomar
Hi,

I just migrated my application to VS2005 and I get 2 warnings saying:

"Type of parameter 'app' is not CLS-compliant."

"Return type of function 'AppInventor' is not CLS-compliant."

Can anyone help me understand what these warning errors mean and how to fix?

Thanks for the usual help,
Glenn


Oct 16 '06 #1
Share this Question
Share on Google+
3 Replies


Jay B. Harlow
P: n/a
Jay B. Harlow
Glenn,
Normally the first thing I do when I see this is verify that I have:

<Assembly: CLSCompliant(True)>

In my AssemblyInfo.vb file. This informs the VB compiler that all the types
in that assembly are CLS Compliant.

Then on a case by case basis I will add <CLSCompliant(False)to respective
types and/or type members that I verify are not CLS Compliant.

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...cification.asp

--
Hope this helps
Jay B. Harlow
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


"Glenn Palomar" <glenn.palomar@autodesk.comwrote in message
news:uva44eU8GHA.4084@TK2MSFTNGP05.phx.gbl...
Hi,
>
I just migrated my application to VS2005 and I get 2 warnings saying:
>
"Type of parameter 'app' is not CLS-compliant."
>
"Return type of function 'AppInventor' is not CLS-compliant."
>
Can anyone help me understand what these warning errors mean and how to
fix?
>
Thanks for the usual help,
Glenn
>
>
Oct 17 '06 #2

William LaMartin
P: n/a
William LaMartin
I received a similar warning when I brought an xml file into my project.
There was a node name of Table in the file that caused a number of such
warnings.

On the warning line, look at the File column and you will see the file to
which it is referring.

"Glenn Palomar" <glenn.palomar@autodesk.comwrote in message
news:uva44eU8GHA.4084@TK2MSFTNGP05.phx.gbl...
Hi,
>
I just migrated my application to VS2005 and I get 2 warnings saying:
>
"Type of parameter 'app' is not CLS-compliant."
>
"Return type of function 'AppInventor' is not CLS-compliant."
>
Can anyone help me understand what these warning errors mean and how to
fix?
>
Thanks for the usual help,
Glenn
>
>

Oct 17 '06 #3

Glenn Palomar
P: n/a
Glenn Palomar
Thanks for the input. I resolved the issue by specifying
CLSCompliant(False).

Glenn

"Jay B. Harlow" <Jay_Harlow_MVP@tsbradley.netwrote in message
news:479B62CF-25BD-483E-879B-97A07FDD6C2C@microsoft.com...
Glenn,
Normally the first thing I do when I see this is verify that I have:
>
<Assembly: CLSCompliant(True)>
>
In my AssemblyInfo.vb file. This informs the VB compiler that all the
types in that assembly are CLS Compliant.
>
Then on a case by case basis I will add <CLSCompliant(False)to
respective types and/or type members that I verify are not CLS Compliant.
>
http://msdn.microsoft.com/library/de...classtopic.asp
>
http://msdn.microsoft.com/library/de...cification.asp
>
--
Hope this helps
Jay B. Harlow
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
>
>
"Glenn Palomar" <glenn.palomar@autodesk.comwrote in message
news:uva44eU8GHA.4084@TK2MSFTNGP05.phx.gbl...
>Hi,
>>
>I just migrated my application to VS2005 and I get 2 warnings saying:
>>
>"Type of parameter 'app' is not CLS-compliant."
>>
>"Return type of function 'AppInventor' is not CLS-compliant."
>>
>Can anyone help me understand what these warning errors mean and how to
>fix?
>>
>Thanks for the usual help,
>Glenn
>>
>>
>

Oct 19 '06 #4

Post your reply

Help answer this question



Didn't find the answer to your Visual Basic .NET question?

You can also browse similar questions: Visual Basic .NET cls-compliant clscompliant