Using R#4.0 with c# 2.0 projects


When I use R#4.0 in a C# 2.0 project R# suggest refactorings for C# 3.0,
like using the var keyword.
Is there a way to say 'just use 2.0 refactorings'


0
8 comments

Hello Bas,

What Visual Studio do you use?

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


BJ> When I use R#4.0 in a C# 2.0 project R# suggest refactorings for C#
BJ> 3.0, like using the var keyword. Is there a way to say 'just use 2.0
BJ> refactorings'
BJ>


0
Avatar
Permanently deleted user

Hoi Ilya,

I use Visual Studio version 9.0.21022.8 RTM Professional Edition.


Hello Ilya,

Hello Bas,

What Visual Studio do you use?

Sincerely,
Ilya Ryzhenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

BJ>> When I use R#4.0 in a C# 2.0 project R# suggest refactorings for C#
BJ>> 3.0, like using the var keyword. Is there a way to say 'just use
BJ>> 2.0 refactorings'
BJ>>


0

Hello Bas,

You need to set Language Level, see http://jetbrains.net/jira/browse/RSRP-58845
and comments to it

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


BJ> Hoi Ilya,
BJ>
BJ> I use Visual Studio version 9.0.21022.8 RTM Professional Edition.
BJ>
BJ> Hello Ilya,
BJ>
>> Hello Bas,
>>
>> What Visual Studio do you use?
>>
>> Sincerely,
>> Ilya Ryzhenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
BJ>>> When I use R#4.0 in a C# 2.0 project R# suggest refactorings for
BJ>>> C# 3.0, like using the var keyword. Is there a way to say 'just
BJ>>> use 2.0 refactorings'
BJ>>>


0
Avatar
Permanently deleted user

I'd like to do this, but I don't seem to have any projectName.csproj.resharper files - the only *.resharper files I have are solutionName.resharper, and adding that information to them hasn't seemed to make any difference.

What am I doing wrong?

0

Hello Will,

There is not configuration yet, so they don't exist. You should create one.
Or wait until next nightly build, where we added configuration option for
C# project (in Properties tool window), where you can set it right away.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


WD> I'd like to do this, but I don't seem to have any
WD> projectName.csproj.resharper files - the only *.resharper files I
WD> have are solutionName.resharper, and adding that information to them
WD> hasn't seemed to make any difference.
WD>
WD> What am I doing wrong?
WD>


0
Avatar
Permanently deleted user

FYI: You can use 'var' keyword when targeting 2.0 applications in VS 2008.

http://www.willasrari.com/blog/utilize-the-var-keyword-while-targeting-20-applications/000280.aspx

0
Avatar
Permanently deleted user

Will Asrari wrote:

FYI: You can use 'var' keyword when targeting 2.0 applications in VS
2008.

http://www.willasrari.com/blog/utilize-the-var-keyword-while-targeting
-20-applications/000280.aspx


Yes, but dont want to use them.

--
Peter Sulek
terrorix@centrum.sk
XanaNews ver. 1.18.1.6

0
Avatar
Permanently deleted user

I was just saying :)

0

Please sign in to leave a comment.