. NET Framework 4 and. NET Framework 4 client profile

Source: Internet
Author: User

I recently encountered a problem in the project. I have referenced anotherProgramBut the compiler still reported an error, saying that the namespace could not be found, but I clearly referenced it. After searching for a long time, I finally found the problem. When you view the properties of a project, you can find that its Framework version is. NET Framework 4 client profile and change it to. NET Framework 4. I checked some related information on the Internet and introduced the differences between the two.

It turned out to be Microsoft's. the. NET Framework is too large and has several hundred megabytes, which makes the development process inconvenient. When installing it for users, A. NET Framework should also be included.. NET Framework. net Framework for weight loss, extract some core functions, this is.. NET Framework client profile. Some other less commonly used functions are not included. Profile is provided from. NET Framework 3.5 .. NET framework 4 client profile has been improved based on 3.5. Through this, we will know that, in fact .. . NET Framework 4 client profile is .. A subset of. NET Framework 4. Therefore, if your project is framework 4 client profile, you cannot Reference Components of framework 4. Some functions in. NET Framework 4 do not exist in the net framework 4 client profile, so an error is reported.

On Microsoft's official website, you will see other Error Descriptions:

When your application targets a participant profile, you might encounter errors if you try to reference an assembly that is not part of that profile. Common Errors include the following:

    • The type or namespace name "name" does not exist in the namespace "namespace". (Are you missing an Assembly reference ?)

    • Type "typename" is not defined.

    • Cocould not resolve assembly "assembly". The Assembly is not listed as part of the "Profile" profile.

These errors can result from different actions. This topic affects des descriptions of what might have caused the error and how to resolve the issue.

If you want to know what the. NET Framework 4 client profile contains and what it does not, refer to this URL .. Net Framework client profile

Other references:

Troubleshooting. NET Framework targeting errors

What's new in. NET Framework 4 client profile beta 2

. NET Framework 4 and. NET Framework 4 client profile

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.