Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 31 Jul 2008 15:48:08 +0000 (UTC),    group: microsoft.public.dotnet.framework        back       


Re: VS 2005 and .NET 3.0   
Hello G.S.,

> On Jul 31, 11:01 am, Marc Gravell  wrote:
>
> Sory if that's not an accurate question, but what about C# laguagge
> features that were introduced in 3.0?
> 

AFAIK C# 3.0 is only available with .Net 3.5 (either the framework SDK or 
VS2008). 

You cannot use C#3.0 language features with VS2005

--
Rory
date: Thu, 31 Jul 2008 15:48:08 +0000 (UTC)   author:   Rory Becker am

Re: VS 2005 and .NET 3.0   
>> On Jul 31, 11:01 am, Marc Gravell  wrote:


Erm sorry Marc, not sure why I attributed that quote to you 

--
Rory
date: Thu, 31 Jul 2008 15:56:38 +0000 (UTC)   author:   Rory Becker am

Re: VS 2005 and .NET 3.0   
On Jul 31, 11:56 am, Rory Becker <rorybec...@newsgroup.nospam> wrote:
> >> On Jul 31, 11:01 am, Marc Gravell  wrote:
>
> Erm sorry Marc, not sure why I attributed that quote to you
>
> --
> Rory

Thank you both!

So to recap:

.NET Framework 3.0 uses the same version of the C# language as .NET
Framework 2.0
Then .NET Framework 3.5 introduces C#3.0

VS 2005 is hard-wired to use the .NET Framework 2.0 compiler and
there's no switch to flip to use .NET 3.5 compiler.

However, I could install .NET Framework 3.5 SDK and, I guess, manually
compile?
date: Thu, 31 Jul 2008 10:11:01 -0700 (PDT)   author:   G.S.

Re: VS 2005 and .NET 3.0   
On Thu, 31 Jul 2008 10:11:01 -0700, G.S.  wrote:

> [...]
> However, I could install .NET Framework 3.5 SDK and, I guess, manually
> compile?

I believe that's correct.  My recollection is that the last time I looked  
at this, the latest .NET SDK supported .NET 3.5 even under VS2005.  But  
you would not, of course, get any of the _language_ features, since those  
are supported by the compiler, not the run-time or framework.

Many of the new framework features are made more accessible by the 3.0  
version of C#, but you can still write the code explicitly to access those  
classes and their members.

Pete
date: Thu, 31 Jul 2008 10:35:25 -0700   author:   Peter Duniho

Re: VS 2005 and .NET 3.0   
> AFAIK C# 3.0 is only available with .Net 3.5 (either the framework SDK 
> or VS2008).
> You cannot use C#3.0 language features with VS2005

Actually, I believe the compiler is part of the core framework install, 
not the SDK. And to clarify: the 3.5 here only refers to the compiler: 
code built with the new compiler will work fine on 2.0 machines, as long 
as the code doesn't *also* happen to use .NET 3.5 libraries.

Personally, I find it easier just to think of "the C# 3 compiler", 
rather than the fact that it happens to ship with .NET 3.5.

Correct: you cannot use C# 3 language features with VS2005 in any useful 
way.

Marc
date: Fri, 01 Aug 2008 10:25:56 +0100   author:   Marc Gravell

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us