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

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

问题描述

我看到我不能在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

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

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