By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,868 Members | 1,765 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,868 IT Pros & Developers. It's quick & easy.

Dependency mscorlib?

P: n/a
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?

Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Earl" <br******@newsgroups.nospam> schrieb:
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\mscor lib.dll").

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Using my copy of the DLL. How do I add it to mscorlib?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
"Earl" <br******@newsgroups.nospam> schrieb:
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\mscor lib.dll").

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
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\msco rlib.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.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
"Earl" <br******@newsgroups.nospam> schrieb:
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\mscor lib.dll").

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

P: n/a
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.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
"Earl" <br******@newsgroups.nospam> schrieb:
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\mscor lib.dll").

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.