The namespace "System" does not contain a type or namespace name "Linq ". Is Assembly reference missing ?, Namespace

Source: Internet
Author: User

The namespace "System" does not contain a type or namespace name "Linq ". Is Assembly reference missing ?, Namespace
Complete error message

Error 1: The namespace "System" does not contain a type or namespace name "Linq ". Is Assembly reference missing? F: \ CsProjects \ CSharp implement SPY ++ \ Form1.cs 6 14 CSharp implement SPY ++

Error cause

At the beginning, the Framework Version selected for creating a project was 4.0. However, to adapt to the platform adaptability of the project, the Framework version was changed to 2.0. This problem occurs when the project is re-compiled.

Solution

Double-click the error message to open the System. Linq file, as shown below:

Delete "using System. Linq;" in the file, save the file, and re-compile it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.