473,385 Members | 2,162 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,385 software developers and data experts.

Add reference to 2.0 library ????

Dear all,

I have build a library with .NET 2.0
I want to deliver that library for beeing referenced by a .NEt 1.1 project.
For that, on the machine where I have .net 1.1 installed and VS2003, I copy
my 2.0 library into a folder. then from the 1.1 project I add reference to
that library. Doing this return an error saying that it is not a correct DLL
or COM components.

Is it possible to add a 2.0 referenced library within a 1.1 project ?

thnaks for help
regard
serge
Apr 18 '07 #1
3 2120
You cannot use code compiled with .NET 2.0 in .NET1.x app. The other way
around is OK.

"calderara" <ca*******@discussions.microsoft.comwrote in message
news:EF**********************************@microsof t.com...
Dear all,

I have build a library with .NET 2.0
I want to deliver that library for beeing referenced by a .NEt 1.1
project.
For that, on the machine where I have .net 1.1 installed and VS2003, I
copy
my 2.0 library into a folder. then from the 1.1 project I add reference to
that library. Doing this return an error saying that it is not a correct
DLL
or COM components.

Is it possible to add a 2.0 referenced library within a 1.1 project ?

thnaks for help
regard
serge

Apr 18 '07 #2
On Apr 18, 9:00 am, calderara <calder...@discussions.microsoft.com>
wrote:
Dear all,

I have build a library with .NET 2.0
I want to deliver that library for beeing referenced by a .NEt 1.1 project.
For that, on the machine where I have .net 1.1 installed and VS2003, I copy
my 2.0 library into a folder. then from the 1.1 project I add reference to
that library. Doing this return an error saying that it is not a correct DLL
or COM components.

Is it possible to add a 2.0 referenced library within a 1.1 project ?

thnaks for help
regard
serge
I'm almost certain there is no way to make this possible. You can do
the reverse however (use a 1.1 in a 2.0 project).

Apr 18 '07 #3
Coz many features have been added to .NET 2.0 the metadata format was
changed and .NET 1.x will not recognize 2.0 assemblies. So you cannot
directly refer or call it:
http://dotnet.org.za/ahmeds/archive/.../08/49984.aspx

But there is the solution to call the assembly as a COM component
http://dotnetjunkies.com/WebLog/saar...27/135635.aspx

Regards, Alex Meleta
Blog:: http://devkids.blogspot.com
-----Original Message-----
From: calderara [mailto:ca*******@discussions.microsoft.com]
Posted At: Wednesday, April 18, 2007 5:00 PM
Posted To: microsoft.public.dotnet.general
Conversation: Add reference to 2.0 library ????
Subject: Add reference to 2.0 library ????

Dear all,

I have build a library with .NET 2.0
I want to deliver that library for beeing referenced by a .NEt 1.1
project.
For that, on the machine where I have .net 1.1 installed and VS2003, I
copy
my 2.0 library into a folder. then from the 1.1 project I add reference to
that library. Doing this return an error saying that it is not a correct
DLL
or COM components.

Is it possible to add a 2.0 referenced library within a 1.1 project ?

thnaks for help
regard
serge

Apr 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Zippy | last post by:
Some months ago, we requested help from this newsgroup on how to replace the library reference of a database with another library reference, prior to creating an MDE. I got the following answer...
6
by: Steve | last post by:
What would happen if an Access97 database had a reference to Microsoft Office 10 library (but only used Access97 stuff) and it was run on a machine that only had Access97 and correspondingly only...
7
by: John | last post by:
Hi I open a word document from my vb.net app. Now I want to pass reference to one of the classes in my vb.net app to word so it can access procedures in the vb.net class. How can I pass the...
4
by: John Lafrowda | last post by:
Hi all, I'm trying to handle two projects in one solution (.net 2002, both projects are VB). The first project contains only some public constant definitions (for the moment) and compiles into...
11
by: Just Me | last post by:
I have a solution containing many usercontrol projects. When I wish to reference a usercontrol in another project I can select either the project or the assembly. Does it make a difference which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.