从3.5拨打电话到.NET 4库 [英] Making a call to a .NET 4 library from 3.5

查看:116
本文介绍了从3.5拨打电话到.NET 4库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有需要打电话给System.Xaml库在.NET 4.0中。是否有可能打电话到这个库,如果你的项目的目标是到3.5?

I have the need to make a call to the System.Xaml library in .NET 4.0. Is it possible to make a call to this library if your project is targeted to 3.5?

推荐答案

没有。您需要针对您的项目在.NET 4中运行,并使用CLR V4,为了使用.NET 4集。

No. You'll need to target your project to run in .NET 4, and to use the CLR v4, in order to use .NET 4 assemblies.

在一个不同的说明 - 这里没有真正的优势。只要改变你的应用程序面向.NET 4。如果你要添加一个依赖于.NET 4的框架组件,您可能也只是针对.NET 4摆在首位...

On a different note - there is no real advantage here. Just change your application to target .NET 4. If you are going to add a dependency on the .NET 4 framework assemblies, you might as well just target .NET 4 in the first place...

这篇关于从3.5拨打电话到.NET 4库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆