本文介绍了异步CTP没有VS 2010 SP1的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载并安装它我的机器,它同时具有VS 2010和VS 2012的安装似乎已成功完成(没有错误)。

I downloaded Async CTP and installed it on my development machine, which has both VS 2010 and VS 2012. The installation seemed to have completed successfully (no errors).

我创建了一个全新的WinForms项目(语言:VB.NET),以及一个装饰用的Form_Load 异步

I created a brand new WinForms project (language: VB.NET), and decorated a Form_Load with Async.

问题是,异步关键字无法识别。没有人管理,使其工作怎么样?

Problem is that Async keyword is not recognized. Did anyone manage to make it work and how?

做同样的VS 2012,目标NET框架4.5的作品。

Doing the same in VS 2012, targeting .NET framework 4.5 works.

注意:我不需要任何的的Silverlight 的Windows Phone 的甚至的网站的在这个时候。

Note: I don't need any Silverlight, Windows Phone or even Web at this time.

推荐答案

作为建议的@Ramhound,我卸载相关的VS 2012和2010年的一切,再装2010 + SP1 +应用异步CTP3。正确安装异步CTP3显示欢迎屏幕并提示重新启动。之后,VS 2010开始支持异步关键字。然而,对于全面支持,需要从这里引用一个相应的库(依赖于平台):

As suggested by @Ramhound, I uninstalled everything related to VS 2012 and 2010, then installed 2010 + SP1 + applied Async CTP3. Properly installed Async CTP3 shows a welcome screen and prompts to restart. After that VS 2010 starts supporting the async keyword. However, for the full support, it is required to reference a corresponding library from here (platform dependent):

c:\Users\%username%\Documents\Microsoft Visual Studio Async CTP\Samples\

在我的情况下,它是 AsyncCtpLibrary.dll 。否则会突出语法,但将无法编译。

In my case it was AsyncCtpLibrary.dll. Otherwise it will highlight the syntax, but won't compile.

这篇关于异步CTP没有VS 2010 SP1的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 08:16