Target framework in VS2008

Hi,


I'm using Resharper 4.0.804 beta in a solution that contains both .NET 2.0
projects and .NET 3.5 projects (ref: Target framework setting in the
properties of the projects themselfs).
But when I'm editing files of a .NET 2.0 project, resharper is suggesting
changes (such as constructor initializers or usage of the keyword var)
eventhough the target framework doesn't support the C#3.0 langauge
specifications.


Is this a known issue?


Svensei


4 comments
Comment actions Permalink

Both of those features are supported under the 2.0 framework.

http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx


"Svensei" <svensei@telenet.be> wrote in message
news:g15p46$c5n$1@is.intellij.net...

Hi,

>
>

I'm using Resharper 4.0.804 beta in a solution that contains both .NET 2.0
projects and .NET 3.5 projects (ref: Target framework setting in the
properties of the projects themselfs).
But when I'm editing files of a .NET 2.0 project, resharper is suggesting
changes (such as constructor initializers or usage of the keyword var)
eventhough the target framework doesn't support the C#3.0 langauge
specifications.

>
>

Is this a known issue?

>
>

Svensei


0
Comment actions Permalink

You can use C#3.0 on .NET 2.0.

The language version and the framework version are not the same thing. You can tell R# which language version you're targeting by changing the 'Language Level' item in each project's properties.

0
Comment actions Permalink

Hi Chris,



I was (wrongfully) under the impression that the C# 3.0 language
specification was new under the 3.0 and 3.5 framework.

Thanks for setting the record straight.



Svensei

"Chris Cogburn" <chris.cogburn@colemont.com> wrote in message
news:g15udb$6dh$1@is.intellij.net...

Both of those features are supported under the 2.0 framework.

>

http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx

>
>

"Svensei" <svensei@telenet.be> wrote in message
news:g15p46$c5n$1@is.intellij.net...

>> Hi,
>>
>>
>> I'm using Resharper 4.0.804 beta in a solution that contains both .NET
>> 2.0 projects and .NET 3.5 projects (ref: Target framework setting in the
>> properties of the projects themselfs).
>> But when I'm editing files of a .NET 2.0 project, resharper is suggesting
>> changes (such as constructor initializers or usage of the keyword var)
>> eventhough the target framework doesn't support the C#3.0 langauge
>> specifications.
>>
>>
>> Is this a known issue?
>>
>>
>> Svensei
>>



0
Comment actions Permalink

Hi Will,

I was (wrongfully) under the impression that the C# 3.0 language
specification was new under the 3.0 and 3.5 framework.
But I can't seem to find the setting you desribed ('Language Level' item in
each project's properties)? Where can I find it?

Thanks for your reply.



Svensei.

"Will Dean" <resharper@indcomp.co.uk> wrote in message
news:3482172.19451211530737906.JavaMail.jive@app4.labs.intellij.net...

You can use C#3.0 on .NET 2.0.

>

The language version and the framework version are not the same thing.
You can tell R# which language version you're targeting by changing the
'Language Level' item in each project's properties.



0

Please sign in to leave a comment.