Dependency mscorlib?

E

Earl

Created a .dll to use in multiple projects. Very simple, one class to return
a purpose for a particular version. But when I added it as a reference to
one of my other projects, I get a build error (even before I try to build
it): "Error: The dependency 'mscorlib, Version= 1.0.5000.0,
Culture=neutral,"

I put the dll in the bin directory below my project and then add it as a
reference. What am I overlooking here?
 
H

Herfried K. Wagner [MVP]

Earl said:
Created a .dll to use in multiple projects. Very simple, one class to
return a purpose for a particular version. But when I added it as a
reference to one of my other projects, I get a build error (even before I
try to build it): "Error: The dependency 'mscorlib, Version= 1.0.5000.0,
Culture=neutral,"

I put the dll in the bin directory below my project and then add it as a
reference. What am I overlooking here?

I am just curious if this problem occurs only if you use your own copy of
the DLL or add the reference to the .NET Framework's "mscorlib.dll"
("%WINDIR%\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll").
 
E

Earl

I have a little insight into the issue.

When I created the dll, the IDE selected the mscorlib file from the full
framework (F:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll).

However, the class library will be used in the CompactFramework (my project
there references F:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\mscorlib.dll).

Sooooo ... how to redirect the reference to mscorlib in the DLL and how to
ensure that any DLL files I create will initially reference the proper
mscorlib for CF?

Thanks Herfried.
 
E

Earl

Issue resolved (Peter Foot pointed me in the right direction). Using the
wizard to start a new library file cannot be done the same way for a desktop
app as for a CF app -- for CF, it has to be done through the "Smart Device
Application" selection.
 

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