Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference in the properties for the same dll in c#.net and vb.net

Tags:

c#

.net

vb.net

I am adding a dll for my project. My project is in vb.net and dll is written in c#.net. When I add this to a vb.net project the properties that are available are different (less in number) to the properties that are available if the same dll is added to a c# project.

Object Browser view when added to a VB.Net Project enter image description here

Object Browser view when added to a c# project Object Browser view when added to a c# project

If you see in c# view you can access properties like "hits" and "facets" which are not accessible in vb.net.

Can anyone please help me understand this issue.

like image 451
dittu Avatar asked Dec 06 '25 06:12

dittu


1 Answers

There are differences between VB.NET and C#. Make sure you compile your C# dll with the assembly attribute CLSCompliant set to true so your compiler can determine if all your publics are compatible to the other .NET languages.

like image 163
nvoigt Avatar answered Dec 07 '25 21:12

nvoigt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!