C# DLL in VB.Net

M

Muhammad Arif

Hi All,
I have made class library project in C# and created its dll
(test.dll). Now I add it to References of VB.Net project. I then
compiled VB.Net project, it gives the following error,


Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'EltrataxPDA' cannot be
copied to the run directory because it would conflict with dependency
'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.


How I can use the C# dll in VB.Net without having and error?

Regards,
Muhammad Arif
 
P

Peter Foot [MVP]

The C# library must be created as a Smart Device project too (not a desktop
framework library). If you create a smart device library however it can also
be used in the desktop framework (as long as there is no .NETCF specific
functionality).

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top