473,386 Members | 1,721 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,386 software developers and data experts.

C#1.1 and C#2.0 compatibility

Could somebody please answer the following questions?

1) Can all the .Net 1.1 executables run on a PC without the .Net 1.1
runtime, but with the .Net 2.0 runtime ?
2) Is the retro-installing flawless (I mean installing the .Net runtime 1.1
after having installed the 2.0 runtime) ? Is it useful (to run 1.1 programs)
or not ?
3) A C#2.0 program can link to a (managed) .Net 1.1 dll (without
recompilation of the dll code)?
4) Is it true that all the C#1.1 projects compile (without any conversion)
when built with the .Net 2.0 csc.exe ?

Basically I ask these questions because I'm making new releases of a C# 1.1
project, and I have to decide what to do, now that the 1.1 Framework is
starting to become obsolete.

Thank you in advance for your answers.
Mar 13 '06 #1
2 1967
Flix <wr***@newsgroup.com> wrote:
Could somebody please answer the following questions?

1) Can all the .Net 1.1 executables run on a PC without the .Net 1.1
runtime, but with the .Net 2.0 runtime ?
I believe so, although there are some incompatibilities between the
different versions - some of which are documenting and some of which
aren't.
2) Is the retro-installing flawless (I mean installing the .Net runtime 1.1
after having installed the 2.0 runtime) ?
Haven't done it myself, to be honest.
Is it useful (to run 1.1 programs) or not ?
Personally I think it's useful to have it, as then you'll be running
against the versions it was tested with etc. No worries about
incompatibilities.
3) A C#2.0 program can link to a (managed) .Net 1.1 dll (without
recompilation of the dll code)?
Yes.
4) Is it true that all the C#1.1 projects compile (without any conversion)
when built with the .Net 2.0 csc.exe ?
There are a very few incompatibilities in the language - in particular,
there's one issue with delegates where you *could* end up with
different behaviour but still no warnings. It's unlikely you'll run
into it though.
Basically I ask these questions because I'm making new releases of a C# 1.1
project, and I have to decide what to do, now that the 1.1 Framework is
starting to become obsolete.


I know, it's a tricky situation.

--
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
Mar 13 '06 #2
> Could somebody please answer the following questions?

1) Can all the .Net 1.1 executables run on a PC without the .Net 1.1
runtime, but with the .Net 2.0 runtime ?
If you want an absolute answer then it is no. Most can run without problems,
some won't. I have 2 which won't run with only 2.0 installed.
2) Is the retro-installing flawless (I mean installing the .Net
runtime 1.1
after having installed the 2.0 runtime) ? Is it useful (to run 1.1
programs)
or not ?
I have installed 1.1 after 2.0 and apart from some smallish changes of defaults
for one IIS application it doesn't seem to be a problem. I can't guarantee
that everything will work though but it seems to work for me.
3) A C#2.0 program can link to a (managed) .Net 1.1 dll (without
recompilation of the dll code)?


Yes.

--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2
Mar 14 '06 #3

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

Similar topics

4
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum...
0
by: flat_ross | last post by:
If there was one thing nice about "Binary Compatibility" in VB6, it would tell you at compile time that you changed your public interface. I am looking for the same functionality in .NET. I know...
6
by: someone | last post by:
Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run...
13
by: Derek | last post by:
As I understand it there is a good amount of link compatibility among C compilers. For example, I can compile main.c with GCC and func.c with Sun One and link the objects using either linker (GNU...
2
by: Dominic | last post by:
Hi everybody, I'm planning to use serialization to persist an object (and possibly its child objects) in my application. However, I'm concerned about the backward compatibility issue. I'm...
1
by: Vycka | last post by:
Hello, There is a enterprise web application that is based on asp.net technologies and works on Microsoft IIS. The total number of users is 850. When the load of system gets very high, the...
14
by: frostalicious | last post by:
Used VB.NET (on my client PC) to convert VB6 executable to .NET executable. Placed the .exe file on a network drive on my server. From client, ran .NET Wizards "Trust an Assembly" to make the...
2
by: Carlo | last post by:
I recently started in a new position, and I inherited an application written in VB6 that uses a bunch of DLLs and OCX controls. Version Compatibility is set to Binary at the project level, but since...
1
by: Simon Woods | last post by:
Hi I have a dll ('dll-X') which runs on top of (dependent upon) several other dlls. My build environment has a folder structure binaries compat-libs
17
by: osama178 | last post by:
Hi, What does it mean for an object to be binary compatible? And why aren't STL objects binary compatible? Any insights, links, resources for further reading are greatly appreciated. Thanks.
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...
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: 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
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...

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.