【问题标题】:Unable to install SP1 for Visual Studio 2010 express Windows Phone 7 in Windows 8?无法在 Windows 8 中为 Visual Studio 2010 express Windows Phone 7 安装 SP1?
【发布时间】:2013-03-09 10:14:52
【问题描述】:

我正在使用异步 CTP 在 Windows 8 操作系统上安装 Visual Studio 2010 express for Windows Phone,因为我已经安装了 Visual Studio 2010 express for Windows Phone,如下所示:

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

但它总是给我错误,如下所示:

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

【问题讨论】:

  • Async CTP 有许多已知的(并不总是记录在案的)错误,其中许多与安装有关。这总是使使用 Async CTP 设置新​​机器出现问题。因此,即使您安装了 SP1,您也可能无法安装 Async CTP。但无论如何你都不需要,因为如果你安装Microsoft.Bcl.Async,VS2012 将支持 WP 上的async。在您的场景中,没有理由不升级到 VS2012。

标签: visual-studio-2010 windows-phone-7 windows-phone-7.1 async-await async-ctp


【解决方案1】:

没有为 Windows 8 提供您尝试安装的 Service Pack:

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.

第二个坏消息:“在没有 .NET Framework 4.5 的情况下使用 async/await”http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx

为了使用 await 你需要两个组件:

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

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

VS 2012 的新语言和库功能是 适用于 Windows 桌面的 Visual Studio Express 2012 中可用, 包括 Visual Basic 和 C#、C++ AMP 中的 async 和 await 关键字, 以及对 C++ 11 标准一致性的改进。

您可以将 Express for Windows Desktop 与 您的 Visual Basic 和 C# 应用程序以 .NET 4.0 和 4.5 为目标。

【讨论】:

    猜你喜欢
    • 2011-11-20
    • 1970-01-01
    • 1970-01-01
    • 2014-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-07
    • 1970-01-01
    相关资源
    最近更新 更多