简体   繁体   中英

How to reference assemblies targeting higher framework in visual studio 2010?

I have a project that targets .Net 3.5 framework and I need to add a reference which is targeting 4.0. Is it possible to do this? Thanks!

That's not possible.

.Net 4.0 assemblies run against a newer version of the CLR.

Only possible if you retarget your project to version 4 or higher. Project properties.

CLR v2.0 applications (including those targeting .Net framework 3.5) cannot see CLR v4.0 assemblies. See this for an excellent explaination.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM