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.
DLL # DLL, DLL.NET. , , IL - , . , , DLL -, Visual Basic. .
CLS .NET, .NET, DLL CLS, . CLS, CTS, CLR .., , #.
CLS, # , , , DLL .Net.
MSDN
, , , , . , (CLS), , ., , CLS-, CLSCompliantAttribute., CLS, #, , CLS-. CLS , CLS.
, , , , . , (CLS), , .
, , CLS-, CLSCompliantAttribute.
, CLS, #, , CLS-. CLS , CLS.
, #, Vb.Net. , , , , , .
VB # - , .
, , - DLL- # (-) vb.
.
:
. , line build file . SDK .NET framework . C:\Program Files\Microsoft Visual .NET\FrameworkSDK\Samples\\CrossDevLan Guage.. . - DLL, ++. #, VB IL ( ). , ++. , ..NET Framework - .
. , 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>
, , ; # VB.NET , .NET, .
# VB.NET, .
, : " " # VB.NET, , , .
VB.NET # MSIL (Microsoft Intermediate Language), , native (machine) .NET- , .NET x, x, , OS y, , .NET , .NET , .
COM- ( ) .NET, , , vb6 (*.ocx) Windows #.
Microsoft.
VB.NET, #, , :)
, ?
, , , , , .