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。

相關問題