C# Functionality(DLL) to VB.NET
-
Good Morning Everyone i have an application in VB.net and a Functionality(dll) written in C#.i have a DLL in C# Project and i have compiled my project with release and Fetch the DLL in the release folder and paste it in the VBProject. now i want to use that C# Functionality in vb project, i went to References and i tried to Add it as .NET reference and i got the following Error.
A Reference to Motherboard.dll could not be added.This is not a valid assembly or Com Component.Only Assemblies with extension 'dll' and Com components can be referenced.
Thanks
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
Good Morning Everyone i have an application in VB.net and a Functionality(dll) written in C#.i have a DLL in C# Project and i have compiled my project with release and Fetch the DLL in the release folder and paste it in the VBProject. now i want to use that C# Functionality in vb project, i went to References and i tried to Add it as .NET reference and i got the following Error.
A Reference to Motherboard.dll could not be added.This is not a valid assembly or Com Component.Only Assemblies with extension 'dll' and Com components can be referenced.
Thanks
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
you c# assembly is probably not CLS compliant
-
Good Morning Everyone i have an application in VB.net and a Functionality(dll) written in C#.i have a DLL in C# Project and i have compiled my project with release and Fetch the DLL in the release folder and paste it in the VBProject. now i want to use that C# Functionality in vb project, i went to References and i tried to Add it as .NET reference and i got the following Error.
A Reference to Motherboard.dll could not be added.This is not a valid assembly or Com Component.Only Assemblies with extension 'dll' and Com components can be referenced.
Thanks
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
The DLL is corrupt, apparently. What happens when you try opening it with ILDASM?
Cheers, Vikram.
The hands that help are holier than the lips that pray.
-
you c# assembly is probably not CLS compliant
Hi thanks for the Reply i have created this DLL in C#.NET, and copied it to the other's application folder and tried to referenced it. doesn't Visual Studio automatically make it CLS Compliant?, because the DLL was created in VS2005 and am taking it to a Project in VS2003. is there a Problem there ? Thanks
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
The DLL is corrupt, apparently. What happens when you try opening it with ILDASM?
Cheers, Vikram.
The hands that help are holier than the lips that pray.
If the DLL is Corrupt, the i can delete it from the Release Folder and Compile the Problem to give me an output of a fresh DLL, then after that i do the Same thing by Copying the DLL to the VB Folder Project and go to VS and reference the DLL under .NET, still gives an Error, and do it under Com still Gives me an Error. what wrong
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
Hi thanks for the Reply i have created this DLL in C#.NET, and copied it to the other's application folder and tried to referenced it. doesn't Visual Studio automatically make it CLS Compliant?, because the DLL was created in VS2005 and am taking it to a Project in VS2003. is there a Problem there ? Thanks
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
you have to add manually this [assembly: System.CLSCompliant(true)] in the AssemblyInfo.cs of your class library, visual studio is not doing it automatically