c# 3.0, not .Net 3.0

K

km

Is it necessary to install the .Net 3.0 framework in order to use the new
language features of c# 3.0? Specifically, can I update a VS2005 environment
with the 3.0 compiler/intellisense/etc. without the 3.0 class framework?

If not, how would I specify in VS to build against 2.0 framework once 3.0 is
installed?

Thanks
 
G

Göran Andersson

km said:
Is it necessary to install the .Net 3.0 framework in order to use the new
language features of c# 3.0? Specifically, can I update a VS2005 environment
with the 3.0 compiler/intellisense/etc. without the 3.0 class framework?

If not, how would I specify in VS to build against 2.0 framework once 3.0 is
installed?

Thanks

No, you need Visual Studio 2008 to get C# 3.0. Then you can also choose
to target the 2.0, 3.0 or 3.5 framework.
 
A

Arne Vajhøj

km said:
Is it necessary to install the .Net 3.0 framework in order to use the new
language features of c# 3.0?

Yes. C# 3.0 requires .NET 3.5 and .NET 3.5 requires .NET 3.0.

(maybe you could hack something, but you would be on your own then)
Specifically, can I update a VS2005 environment
with the 3.0 compiler/intellisense/etc. without the 3.0 class framework?

No. I believe that C# 3.0 and .NET 3.5 requires VS 2008.
If not, how would I specify in VS to build against 2.0 framework once 3.0 is
installed?

In VS 2008 pick:

project
properties
application
target framework

Arne
 
A

Arne Vajhøj

Göran Andersson said:
No, you need Visual Studio 2008 to get C# 3.0. Then you can also choose
to target the 2.0, 3.0 or 3.5 framework.

It is possible to use C# 3.0 and .NET 3.5 command line without
VS 2008.

I would be like taking the stairs instead of the elevator in
Empire State Building, but ...

:)

Arne
 
G

Göran Andersson

Arne said:
It is possible to use C# 3.0 and .NET 3.5 command line without
VS 2008.

I would be like taking the stairs instead of the elevator in
Empire State Building, but ...

:)

Arne

Yes, I suppose that there is a C# 3.0 SDK that you could download
separately. But if you were prepared to use it that way, you would
probably not need to ask about it... :)
 
A

Arne Vajhøj

Göran Andersson said:
Yes, I suppose that there is a C# 3.0 SDK that you could download
separately. But if you were prepared to use it that way, you would
probably not need to ask about it... :)

The command line compiler comes with the base framework - SDK is not
needed.

(I am not even sure that SDK exist for 3.5, but it did for 2.0)

Arne
 
M

Michael J. Ryan

It is possible to use C# 3.0 and .NET 3.5 command line without
VS 2008.

I would be like taking the stairs instead of the elevator in
Empire State Building, but ...

Actually, the runtime comes with the c# and vb.net compilers... you can also
download the SDK. In addition to Visual Studio, there are other IDEs as well,
sharpdevelop is probably the most popular. Also, as an fyi, there are free
Express versions of VS components.
 

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