TPL on PCL of mvvmcross

匿名 (未验证) 提交于 2019-12-03 01:08:02

问题:

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

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...)

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

Thanks.

回答1:

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

  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

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!