mvvmcross 的 PCL 上的 TPL [英] TPL on PCL of mvvmcross

查看:22
本文介绍了mvvmcross 的 PCL 上的 TPL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现我不能在 CORE 项目中使用 TPL.

I see i can't use TPL in the CORE projects.

PCL 是否不支持 System.Threading.Tasks?(我检查了 profile104 并且没有 System.Threading.Tasks 命名空间,但是在配置文件 131 上有...)

Is the PCL doesn't support System.Threading.Tasks? (i checked on profile104 and there is no System.Threading.Tasks namespace, but on profile 131 there is...)

那么,有没有办法将 mvvmcross 与 TPL 结合使用?

So, is there a way to use mvvmcross with TPL?

谢谢.

推荐答案

有几种方法可以将 TPL 与可移植类库一起使用.

There are several ways to use TPL with portable class libraries.

  1. 您可以使用 104 之类的配置文件,并使用 BCL AsyncBridge 支持类对其进行扩展.有关更多信息,请参见 http://channel9.msdn.com/Events/Build/2012/3-004 和资源.有几个人已经这样做了 - 但我不知道有谁完整记录了这个过程.
  2. 您可以使用像 78 这样的配置文件,它本机支持 TPL 和 await/async - 但这不支持 WP7.x
  1. You can use a profile like 104 and extend it with the BCL AsyncBridge support classes. For more on this see http://channel9.msdn.com/Events/Build/2012/3-004 and the resources. Several people have done this - but I don't know of anyone who's fully documented the process.
  2. You can use a profile like 78 which supports TPL and await/async natively - but this doesn't support WP7.x

当官方 Xamarin PCL 支持可用时,这应该会容易得多

This should be much easier when the official Xamarin PCL support is available

这篇关于mvvmcross 的 PCL 上的 TPL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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