PC Review


Reply
Thread Tools Rate Thread

C# DLL in VB.Net

 
 
Muhammad Arif
Guest
Posts: n/a
 
      5th Mar 2004
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
 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      5th Mar 2004
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

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Muhammad Arif" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.