Visual Studio and .Net Runtime Framework dependency


G

Guest

Hello everyone,


If I am using Visual Studio 2005 to build a C# Class Library (COM), it is as
default dependent on .Net Runtime Framework 2.0 when running?

If I am using Visual Studio 2003 to build a C# Class Library (COM), it is as
default dependent on .Net Runtime Framework 1.1 when running?

How to check the .Net Framework Runtime dependencies when using Visual Studio?


thanks in advance,
George
 
Ad

Advertisements

J

Jon Skeet [C# MVP]

If I am using Visual Studio 2005 to build a C# Class Library (COM), it is as
default dependent on .Net Runtime Framework 2.0 when running?
Yes.

If I am using Visual Studio 2003 to build a C# Class Library (COM), it is as
default dependent on .Net Runtime Framework 1.1 when running?
Yes.

How to check the .Net Framework Runtime dependencies when using Visual Studio?

What do you mean, exactly? At installation time?

Jon
 
G

Guest

Thanks Jon,


--------------------
How to check the .Net Framework Runtime dependencies when using Visual Studio?

What do you mean, exactly? At installation time?
--------------------

I mean when development using Visual Studio (either 2003 or 2005), how to
check manually which CLR (.Net Runtime Framework) the C# Class Library is
dependent on (1.1 oe 2.0 or later version)? Are there any options in Project
properties or somthing?


regards,
George
 
J

Jon Skeet [C# MVP]

--------------------


What do you mean, exactly? At installation time?
--------------------

I mean when development using Visual Studio (either 2003 or 2005), how to
check manually which CLR (.Net Runtime Framework) the C# Class Library is
dependent on (1.1 oe 2.0 or later version)? Are there any options in Project
properties or somthing?

There are no options for VS.NET 2003 or VS 2005 - basically, unless
you've specifically started using MS BEE (in which case you'd know
about it) you'll be using 1.1 under 2003 and 2.0 under 2005.

Orcas (VS 2008) allows you to target 2.0, 3.0 or 3.5, and it's a
project property.

Jon
 
G

Guest

Thanks for your advice, Jon!


I think .Net 2.0 code can not run on .Net 1.1 Runtime, .Net 1.1 code can run
on both .Net 1.1 Runtime and .Net 2.0 Runtime, right?


regards,
George
 
J

Jon Skeet [C# MVP]

George said:
Thanks for your advice, Jon!

I think .Net 2.0 code can not run on .Net 1.1 Runtime, .Net 1.1 code can run
on both .Net 1.1 Runtime and .Net 2.0 Runtime, right?

Exactly. There are a few compatibility issues running 1.1 code on 2.0
(i.e. a few cases where the results will be different) but largely you
should be fine.
 
Ad

Advertisements


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