【问题标题】:Difference in buildable C# applications on Windows 8 vs. Windows Server 2012?Windows 8 与 Windows Server 2012 上可构建的 C# 应用程序的区别?
【发布时间】:2013-06-10 17:55:36
【问题描述】:

我们正在寻找一种新的、最好是共享的机器用于 C# 开发和测试,并且我们希望最大限度地与新的 API 等兼容,因为某些较新的应用程序(Metro?)似乎无法在 Windows 7 上构建也不是 Server 2008。我曾假设,就像过去桌面和服务器 Windows 操作系统之间的兼容性一样,Windows Server 2012 和 Windows 8 将能够构建和测试相同的程序集等。但是,像这样的信息表明情况并非如此:

http://msdn.microsoft.com/en-us/library/windows/apps/br211384.aspx

仅在 Windows 8 上支持在 Visual Studio 中进行 Windows 应用商店应用开发。Windows 7 不支持。此外,开发人员许可证不适用于 Windows Server 2012 年,因此您无法在该操作系统上开发 Windows 应用商店应用程序。

这是否意味着某些 Windows 应用程序无法在任何版本的 Windows Server 操作系统上构建? (我主要对构建和测试感兴趣,而不是真正积极的开发或部署。)

谁能描述在 Windows 8 而不是 Windows Server 2012 上可以构建哪些类型的程序,反之亦然?我假设每个都有 Visual Studio 的所有兼容版本。谢谢。

【问题讨论】:

  • 感谢您的回复。不过,我发现使用可以安装在 Win7、Win2k8R2 或 Win2012 上的 Windows 8 SDK,除了将代码链接到“AppContainerExe”之外,我什么都可以做。由于我的工作性质,我实际上并不需要构建的链接产品,只需要使用适当的先决条件编译代码然后通过的构建。我已经测试了将 .csproj 中的“AppContainerExe”更改为“WinExe”,到目前为止,这使我能够在 Win7 上构建(在某种意义上)Windows Store 应用程序。

标签: c# visual-studio-2012 windows-8 windows-server-2012


【解决方案1】:

这是否意味着某些 Windows 应用程序无法在任何版本的 Windows Server 操作系统上构建?

是的。由于许可限制,您无法在 Windows Server 操作系统上构建 Windows 应用商店应用。

谁能描述在 Windows 8 而不是 Windows Server 2012 上可以构建哪些类型的程序,反之亦然?

Windows 应用商店应用程序无法在 Server 2012 上构建。任何东西都可以在 Windows 8 上开发。

但是,您可以在 Windows Server 2012 机器上安装适用于 Windows 8 的虚拟机,然后在 VM 中进行开发。这是在 Windows 8 上有效开发的。

【讨论】:

    【解决方案2】:

    根据this

    Windows Server 2012 不包括 Metro 或 WinRT

    因此,您将无法在该操作系统中编译或运行基于 WinRT 的软件

    【讨论】:

      【解决方案3】:

      在 Server 2012 上不允许您构建可安装在 Windows RT 设备上的 Windows 应用商店应用程序。注意“不允许”而不是“不能”。对微软来说,开启它应该就像在某个地方翻转一点一样容易,或者至少几乎如此。

      在 Server 2012 和 Windows 8 上安装相同的 Visual Studio,代码最终只是文本。这意味着,如果您真的想要,您可以在 Server 2012 上开发 Windows 应用商店应用程序。您不能(轻松或合法地)在那里构建它。您可以做的是在 VM 上的 Server 2012 中托管 Windows 8。如果您订阅了 MSDN,则您有权为此目的使用这两个系统。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-04-16
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多