473,411 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Dependency mscorlib?

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
4 6861
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom van Dijck | last post by:
Hi I'm currently in the process of writing my own mscorlib.dll, this in order to write my own Virtual Machine. Now all may seem a bit useless, but I'd like to use C# as scripting for our game...
6
by: mccoyn | last post by:
I have a header that is included from some files that use mscorlib and some that don't use it. One of the macros in this file uses the __pin keyword. When this header is compiled with a source file...
9
by: Nak | last post by:
Hi there, I'm getting some strange warnings appearing while I'm compiling a couple of setup projects I have in a solution. I'm being informed of the following warnings, WARNING: Unable to...
0
by: Michael R. Pierotti | last post by:
Has anyone seen this error before when trying to make the install on a program. ------ Starting pre-build validation for project 'HafaSMPPInstall' ------ WARNING: Unable to find dependency...
5
by: cvh | last post by:
How can I create an instance of a class defined in a Dll? This is the code of the class: Class PrClass Public aPrNummer As Integer Public aPrBarcode As String Public aPrPma As Integer...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
0
by: qiang | last post by:
Hi everyone, Could you please take a look at an exception for ASP.NET application? My ASP.NET application is using Infragistics WebChart control. I encounter an exception below when...
0
by: paulodonnell99 | last post by:
Hi, I am trying to build an installer application to run on the compact framework, I want to produce a netmodule using CSC.exe, then use AL.exe to embed resouce files and produce an exe. My...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.