Re: Visual Studio 2008 released

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Nov 20, 9:28 am, "Willy Denoyette [MVP]"
<willy.denoye...@xxxxxxxxxx> wrote:
I hope to be using C# 3 at work within the next few months. I doubt
that I'll be using .NET 3.5 any time soon, but you can use most of the
C# 3 features while targeting .NET 2.0.

True, this is because all "targets" build with C# 3. However, there's
something that I don't like about this "Version targeting", there is no way
to use V2 of the C# compiler from within VS2008, although C# 2 installed
with VS2008 is the latest build (V8.00.50727.1433) targeting V2 of the
framework.

Yes, it's a shame - it means that if you *do* share projects between
VS2005 and VS2008 users, you need to be careful not to put C# 3 code
in there.

I don't suppose it's possible by manually editing the csproj file is
it? I can't say I've looked at it in detail, but I wouldn't be
surprised if there was a property you could set... (In particular, you
have to set a flag for the CSharpCodeProvider to use C# 3 stuff, so
we'd be looking for the reverse in this case...)

Jon
.



Relevant Pages

  • Re: Refactoring Tycho API - Opinions wanted
    ... I was targeting the iPAQ before; but UI kept bothering me. ... It's just that my contacts list need better maintainability and ... features on one of your screenshots:) ...
    (comp.lang.ruby)
  • vs 2008 compiles 3.5 code regardless of target version
    ... Is it true that many of the 3.5 features will work even if ... you are targeting the .NET 2.0 framework? ... cause these to become compiler errors during development so you can ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Best one ?
    ... "best" is a subjective term. ... You might want to post the kind of features you ... are interested in and the price range you are targeting. ...
    (microsoft.public.pocketpc)
  • Re: Visual Studio 2008 released
    ... struggle. ... C# 3 features while targeting .NET 2.0. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Visual Studio 2008 released
    ... something that I don't like about this "Version targeting", ... have to set a flag for the CSharpCodeProvider to use C# 3 stuff, ... What I'm doing is set the ToolsVersion value to 2.0 in the .csproj file. ...
    (microsoft.public.dotnet.languages.csharp)