1

我在Windows 8操作系统的Visual Studio 2010 Express,用于Windows Phone的带有Async CTP的,我已经安装了Visual Studio 2010 Express的Windows手机,如下图所示安装: enter image description here无法在Windows 8中安装SP1 for Windows Studio Express Windows Phone 7?

我现在从链接安装的Windows Phone SP1 http://www.microsoft.com/en-in/download/details.aspx?id=23691

但它总是给我的错误,如下图所示: enter image description here

我应该如何使用异步CTP。我的目标是在Visual Studio 2010中使用Windows Phone 7.1应用程序中的Async和Await,而不是在Visual Studio 2012中使用?

+0

异步CTP有许多已知的(并且并不总是记录在案的)错误,其中许多错误与安装有关。这总是会造成一台具有Async CTP问题的新机器。所以,即使安装了SP1,也可能无法安装Async CTP。但是,无论如何,你不需要,因为如果你安装了'Microsoft.Bcl.Async',VS2012将在WP上支持'async'。没有理由*不*在您的方案中升级到VS2012。 – 2013-03-09 14:53:42

回答

0

服务包您尝试安装不提供针对Windows 8: “没有的.NET Framework 4.5使用异步/等待” http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx

为了使用:

Supported Operating Systems: 
Windows 7, Windows Server 2003 R2 (32-Bit x86), Windows Server 2003 R2 x64 editions, 
Windows Server 2003 Service Pack 2, Windows Server 2008 R2, 
Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2, 
Windows XP Service Pack 3. 

第二个坏消息等待你需要两个组件:

  • 的Visual Studio 2012
  • 一些特定的.NET API

也许你想使用VS Express 2012或VS 2012的试用版:http://www.microsoft.com/visualstudio/eng/downloads#d-2012-editions而不是VS2010?

新的VS 2012语种和库功能是在Visual Studio Express的2012 适用于Windows桌面, 包括异步和Visual Basic和C#等待关键字,C++ AMP, 和改进对C++ 11个标准的一致性。

您可以使用Express for Windows Desktop和 您的Visual Basic和C#应用程序来定位.NET 4.0和4.5。