How can Resharper be made aware of the framework version?

后端 未结 2 1981
刺人心
刺人心 2021-02-12 13:25

I am coding in VS2008 with Resharper 4.5.1, but the projects are set to target .NET Framework 2.0.

Still, Resharper is making suggestions that are relevant to the .NET 3

2条回答
  •  日久生厌
    2021-02-12 14:01

    Those features are not .NET 3.5 framework features, but merely features of the 3.5 compiler. And since in VS2008 this is the compiler invoked for .NET 2 targets, it does handle these syntax extensions correctly.

提交回复
热议问题