2.0 and 1.1 coexistence

U

Udi

Hi,

Is it possible to install VS2005 over VS2003 on the same machine?
Can they both live together?
What if I'm working on two projects that one is complied with 1.1 and
the other with 2.0?
Where do I specify which CLR my exe needs?
Thanks!
 
J

Jon Skeet [C# MVP]

Udi said:
Is it possible to install VS2005 over VS2003 on the same machine?
Can they both live together?
Absolutely.

What if I'm working on two projects that one is complied with 1.1 and
the other with 2.0?
Where do I specify which CLR my exe needs?

I *believe* that if you build with VS2003, it will automatically use
1.1, and if you build with VS2005, it will automatically use 2.0. This
can be overridden with a config file, although I forget how right now.

Jon
 
B

Bajoo

Hi Udi,
Yes it is possible. If you are developing Web Application
you have to change the version of CLR for each new Web application as
your IIS will set the latest CLR version by default. you can change the
CLR version from properties -> Configuration -> edit for each Page
type.
What if I'm working on two projects that one is complied with 1.1 and
the other with 2.0?
Where do I specify which CLR my exe needs?

you don't have to. The portable executable file header of managed
assembly contains information about the runtime version it was built
with. But if you want to specify it yourself you can specify it in
Application.Config. e.g
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>
but i think it was different in version 1 but i'm not sure of that.

I hope it helps.

Regadrs,
Naveed Ahmad Bajwa
Kalsoft Pvt Ltd.
 
J

Jay B. Harlow [MVP - Outlook]

Udi,
In addition to the other comments.

I have VS 6, VS 2002, VS 2003, and VS 2005 all loaded on my machine. I have
not seen negative reactions between them.

| Where do I specify which CLR my exe needs?
Its based on the "compiler" you use. VS 2002 uses the .NET 1.0 compiler, VS
2003 uses the .NET 1.1 compiler & VS 2005 uses the .NET 2.0 compiler.

Using your app.config you could configure .NET 1.1 apps to run on .NET 1.0,
however due to the meta file changes .NET 2.0 apps cannot run on .NET 1.1 or
1.0.


Most .NET 1.0 & 1.1 applications will run on .NET 2.0:

http://msdn2.microsoft.com/en-us/library/ms228009.aspx

In fact most .NET 1.0 & 1.1 apps will run under the .NET 2.0 64-bit edition!

http://blogs.msdn.com/joshwil/archive/2005/05/06/415191.aspx


--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Hi,
|
| Is it possible to install VS2005 over VS2003 on the same machine?
| Can they both live together?
| What if I'm working on two projects that one is complied with 1.1 and
| the other with 2.0?
| Where do I specify which CLR my exe needs?
| Thanks!
|
 
K

Kevin Spencer

I *believe* that if you build with VS2003, it will automatically use
1.1, and if you build with VS2005, it will automatically use 2.0. This
can be overridden with a config file, although I forget how right now.

You believe correctly, Jon. If you attempt to open a 1.1 project in VS.Net
2005, it will want to convert it to a 2.0 Project. The skinny on overriding
this option is that currently, VS.Net 2005 does not support 1.1 Framework
projects. I am told that it is something the team wants to do, but could not
do for this release.

Therefore, you will need to keep VS.Net 2003 (which *can* co-exist with
VS.Net 2005 quite nicely) if you want to continue to work on Framework 1.1
projects.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
 
J

Jay B. Harlow [MVP - Outlook]

Bajoo,
| Yes it is possible. If you are developing Web Application
| you have to change the version of CLR for each new Web application as
| your IIS will set the latest CLR version by default. you can change the
| CLR version from properties -> Configuration -> edit for each Page
| type.
However all your *existing* applications should stay at the level they are
at.

http://msdn2.microsoft.com/en-us/library/ms228009.aspx


--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Hi Udi,
| Yes it is possible. If you are developing Web Application
| you have to change the version of CLR for each new Web application as
| your IIS will set the latest CLR version by default. you can change the
| CLR version from properties -> Configuration -> edit for each Page
| type.
|
| > What if I'm working on two projects that one is complied with 1.1 and
| > the other with 2.0?
| > Where do I specify which CLR my exe needs?
|
| you don't have to. The portable executable file header of managed
| assembly contains information about the runtime version it was built
| with. But if you want to specify it yourself you can specify it in
| Application.Config. e.g
| <configuration>
| <startup>
| <supportedRuntime version="v1.1.4322"/>
| <supportedRuntime version="v1.0.3705"/>
| </startup>
| </configuration>
| but i think it was different in version 1 but i'm not sure of that.
|
| I hope it helps.
|
| Regadrs,
| Naveed Ahmad Bajwa
| Kalsoft Pvt Ltd.
|
 
G

Guest

Just be careful not to convert any projects to VS2005 that you want to use
the 1.1 framework because once you convert a project to VS2005 you can not
undo it.
 
K

Kevin Spencer

Just be careful not to convert any projects to VS2005 that you want to use
the 1.1 framework because once you convert a project to VS2005 you can not
undo it.

Actually, VS.net 2005 creates a backup of the original project.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

Curtis said:
Just be careful not to convert any projects to VS2005 that you want to use
the 1.1 framework because once you convert a project to VS2005 you can not
undo it.


Jay B. Harlow said:
Udi,
In addition to the other comments.

I have VS 6, VS 2002, VS 2003, and VS 2005 all loaded on my machine. I
have
not seen negative reactions between them.

| Where do I specify which CLR my exe needs?
Its based on the "compiler" you use. VS 2002 uses the .NET 1.0 compiler,
VS
2003 uses the .NET 1.1 compiler & VS 2005 uses the .NET 2.0 compiler.

Using your app.config you could configure .NET 1.1 apps to run on .NET
1.0,
however due to the meta file changes .NET 2.0 apps cannot run on .NET 1.1
or
1.0.


Most .NET 1.0 & 1.1 applications will run on .NET 2.0:

http://msdn2.microsoft.com/en-us/library/ms228009.aspx

In fact most .NET 1.0 & 1.1 apps will run under the .NET 2.0 64-bit
edition!

http://blogs.msdn.com/joshwil/archive/2005/05/06/415191.aspx


--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Hi,
|
| Is it possible to install VS2005 over VS2003 on the same machine?
| Can they both live together?
| What if I'm working on two projects that one is complied with 1.1 and
| the other with 2.0?
| Where do I specify which CLR my exe needs?
| Thanks!
|
 
J

Jay B. Harlow [MVP - Outlook]

Curtis,
Correct!

There was a utility on Code Project that would allow you to convert a VS
2003 project back to VS 2002, however I have not looked for a VS 2005
version of the utility.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Just be careful not to convert any projects to VS2005 that you want to use
| the 1.1 framework because once you convert a project to VS2005 you can not
| undo it.
|
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Udi,
| > In addition to the other comments.
| >
| > I have VS 6, VS 2002, VS 2003, and VS 2005 all loaded on my machine. I
have
| > not seen negative reactions between them.
| >
| > | Where do I specify which CLR my exe needs?
| > Its based on the "compiler" you use. VS 2002 uses the .NET 1.0 compiler,
VS
| > 2003 uses the .NET 1.1 compiler & VS 2005 uses the .NET 2.0 compiler.
| >
| > Using your app.config you could configure .NET 1.1 apps to run on .NET
1.0,
| > however due to the meta file changes .NET 2.0 apps cannot run on .NET
1.1 or
| > 1.0.
| >
| >
| > Most .NET 1.0 & 1.1 applications will run on .NET 2.0:
| >
| > http://msdn2.microsoft.com/en-us/library/ms228009.aspx
| >
| > In fact most .NET 1.0 & 1.1 apps will run under the .NET 2.0 64-bit
edition!
| >
| > http://blogs.msdn.com/joshwil/archive/2005/05/06/415191.aspx
| >
| >
| > --
| > Hope this helps
| > Jay [MVP - Outlook]
| > ..NET Application Architect, Enthusiast, & Evangelist
| > T.S. Bradley - http://www.tsbradley.net
| >
| >
| > | > | Hi,
| > |
| > | Is it possible to install VS2005 over VS2003 on the same machine?
| > | Can they both live together?
| > | What if I'm working on two projects that one is complied with 1.1 and
| > | the other with 2.0?
| > | Where do I specify which CLR my exe needs?
| > | Thanks!
| > |
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top