Mixing VB.net code with C # code

I have a vb.net solution and I want to add new DLL files written in C # there and use the functionality from the dll in the code written in vb.net.

I have made several uses of this and it seems that everything is working correctly, but it is a sensible thing to do vb.net messing code with C # as I want.

And what is the danger of what I do?

Many thanks for the help.

+5
source share
6 answers

DLL # DLL, DLL.NET. , , IL - , . , , DLL -, Visual Basic. .

CLS .NET, .NET, DLL CLS, . CLS, CTS, CLR .., , #.

+11

CLS, # , , , DLL .Net.

MSDN

, , , , . , (CLS), , .

, , CLS-, CLSCompliantAttribute.

, CLS, #, , CLS-. CLS , CLS.

, #, Vb.Net. , , , , , .

+5

VB # - , .

, , - DLL- # (-) vb.

.

+3

:

. , line build file . SDK .NET framework . C:\Program Files\Microsoft Visual .NET\FrameworkSDK\Samples\\CrossDevLan Guage.

. . - DLL, ++. #, VB IL ( ). , ++. , ..NET Framework - .

VB.NET # asp.net.

(, vbFolder csFolder) App_Code web.config:

<system.web>    
<compilation>    
<CODESUBDIRECTORIES>    
<ADD directoryName="vbFolder" />    
<ADD directoryName="csFolder" />    
</CODESUBDIRECTORIES>    
</compilation>    
</system.web>  

.

+1

, , ; # VB.NET , .NET, .

# VB.NET, .

, : " " # VB.NET, , , .

0

VB.NET # MSIL (Microsoft Intermediate Language), , native (machine) .NET- , .NET x, x, , OS y, , .NET , .NET , .

COM- ( ) .NET, , , vb6 (*.ocx) Windows #.

Microsoft.

VB.NET, #, , :)

, ?

, , , , , .

0

All Articles