Hi,
I need to convert a big .Net 1.1 solution to .Net 2.0. There is a LOT of
code here and I do not want to do the conversion all in one go. I would like
to be able convert individual projects from the solution to 2.0 and then
reference them from the 1.1 solution, but when I try to add a 2.0 .dll into
a 1.1 project, I get an error
"A reference to ... could not be added. This is not a valid assembly
or COM component....."
I can reference this same component in other 2.0 projects, so I think it is
valid for 2.0, but not 1.1. Is there a way to convince .Net 1.1 to read a
..Net 2.0 dll?
Thanks!
Ethan
Ethan Strauss Ph.D.
Bioinformatics Scientist
Promega Corporation
2800 Woods Hollow Rd.
Madison, WI 53711
608-274-4330
800-356-9526 et***********@promega.com 4 1435
<"Ethan Strauss" <ethan dot strauss at Promega dot com>wrote:
Hi,
I need to convert a big .Net 1.1 solution to .Net 2.0. There is a LOT of
code here and I do not want to do the conversion all in one go. I would like
to be able convert individual projects from the solution to 2.0 and then
reference them from the 1.1 solution, but when I try to add a 2.0 .dll into
a 1.1 project, I get an error
"A reference to ... could not be added. This is not a valid assembly
or COM component....."
I can reference this same component in other 2.0 projects, so I think it is
valid for 2.0, but not 1.1. Is there a way to convince .Net 1.1 to read a
.Net 2.0 dll?
No - go the other way round instead; start off with the top-level
project, and make that refer to 1.1 DLLs. That will work fine.
Gradually work down the dependency tree.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
On May 10, 4:40 pm, "Ethan Strauss" <ethan dot strauss at Promega dot
comwrote:
Hi,
I need to convert a big .Net 1.1 solution to .Net 2.0. There is a LOT of
code here and I do not want to do the conversion all in one go. I would like
to be able convert individual projects from the solution to 2.0 and then
reference them from the 1.1 solution, but when I try to add a 2.0 .dll into
a 1.1 project, I get an error
"A reference to ... could not be added. This is not a valid assembly
or COM component....."
I can reference this same component in other 2.0 projects, so I think it is
valid for 2.0, but not 1.1. Is there a way to convince .Net 1.1 to read a
.Net 2.0 dll?
Try the other way. For example, convert your application project
first, and it can use assemblies from .Net 1.1 without recompiling.
There's no way to get 1.1 to use 2.0 assemblies.
Ethan Strauss wrote:
Hi,
I need to convert a big .Net 1.1 solution to .Net 2.0. There is a LOT of
code here and I do not want to do the conversion all in one go. I would like
to be able convert individual projects from the solution to 2.0 and then
reference them from the 1.1 solution, but when I try to add a 2.0 .dll into
a 1.1 project, I get an error
"A reference to ... could not be added. This is not a valid assembly
or COM component....."
I can reference this same component in other 2.0 projects, so I think it is
valid for 2.0, but not 1.1. Is there a way to convince .Net 1.1 to read a
.Net 2.0 dll?
Not directly, no. You could set up a remoting scheme of some sort to go
from the 1.1 to 2.0 dll indirectly, but you cannot directly reference a
2.0 assembly from a 1.1 assembly. Nor you can load a 2.0 assembly under
the 1.1 framework.
--
Tom Porterfield
OK. Thanks to all. I was afraid I would have to do that. I could have
started with smaller chunks the other way 'round...
I'll start today!
Ethan
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP********************@msnews.microsoft.com.. .
<"Ethan Strauss" <ethan dot strauss at Promega dot com>wrote:
>Hi, I need to convert a big .Net 1.1 solution to .Net 2.0. There is a LOT of code here and I do not want to do the conversion all in one go. I would like to be able convert individual projects from the solution to 2.0 and then reference them from the 1.1 solution, but when I try to add a 2.0 .dll into a 1.1 project, I get an error "A reference to ... could not be added. This is not a valid assembly or COM component....." I can reference this same component in other 2.0 projects, so I think it is valid for 2.0, but not 1.1. Is there a way to convince .Net 1.1 to read a .Net 2.0 dll?
No - go the other way round instead; start off with the top-level
project, and make that refer to 1.1 DLLs. That will work fine.
Gradually work down the dependency tree.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mario T. Lanza |
last post by:
Greetings,
I don't know about you guys but on many occasions I've asked myself
whether or not someone else has solved a particular programming issue
-- whether or not they developed a clever...
|
by: Stumped and Confused |
last post by:
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be...
|
by: Katrina |
last post by:
I am trying to write a piece of code that will search through a number
of different tables (current one being tableNm) to look for a specific
street name that has been entered by the user and saved...
|
by: Jason Hickey |
last post by:
Has there been a change in the way the UI designer handles winform
inheritance in the 2003 version of visual studio.
Consider the following (try it if you are using 2003 Everything seems to
work...
|
by: Todd Schinell |
last post by:
Back in July, Jeffery Tan posted this:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OWOTdf0VDHA.2296%40cpmsftngxa06.phx.gbl
In response as to how to get click events from a...
|
by: [Yosi] |
last post by:
Can I make an Excel file without having Excel in my PC ?
I want to create Excel files from my C# application , then open those files
later in another PC who have Excel installed .
As we can open...
|
by: Praveen Chandra |
last post by:
Hi,
I just wanted to put down the issue with more detailed information so that
you can help us get to the right Microsoft resource for a solution! Here is
the problem description...
Our...
|
by: Nicholas Palmer |
last post by:
Hi all,
Got a question about the AspCompat=true page property. First a little
background. We have an ASP.NET app that uses two COM components. The first
is the Microsoft OWC 11 components and...
|
by: Olegus |
last post by:
Hello,
in order to perform backup/restore MSSQL database using SMO, one needs
to reference several namespaces in a backup class :
using Microsoft.SqlServer.Management.Common;
using...
|
by: Michal Lipinski |
last post by:
Hi
its my first post. I have a problem, I want to user eval() function in
a for loop to set labels to staticText so i done something like this:
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
| |