Visual Studio Does not recognize System.Linq

前端 未结 7 1520
你的背包
你的背包 2020-12-07 02:11

I created this program and C# and it worked correctly a few weeks ago. Now, I copied all of this code to a another project I am working on. I added it to a brand new C# Cla

7条回答
  •  我在风中等你
    2020-12-07 02:28

    An educated guess: It's probably the .NET framework target version of the new project.

    System.Linq was introduced on .NET Framework 3.5.

    Go to Project -> Properties -> Application and check the Target Framework property. It's probably a target framework prior to 3.5

提交回复
热议问题