2012-07-31 131 views
2

我使用Visual Studio Express 2012 RC開發了一個Windows 8 C#應用程序。我可以在我的電腦上運行它。但是,我想創建一個可執行文件,以便我的朋友也可以嘗試應用程序。當我點擊下斌/釋放文件夾中的.exe文件,它說:Windows 8應用程序部署

此應用程序只能在一個應用程序容器的上下文中運行。

如何手動創建應用容器或使用Visual Studio 2012?

+0

這會:http://msdn.microsoft.com/en-us/library/windows/apps/hh464929.aspx幫助嗎? – 2012-07-31 16:55:43

+0

[如何將Metro應用程序部署到桌面?](http://stackoverflow.com/questions/7451536/how-to-deploy-a-metro-app-to-the-desktop) – 2015-02-19 19:17:03

回答

9

請參閱here

在通過商店進行認證和部署之前,您需要開發人員許可證來開發和測試Metro風格的應用程序 。 2012年的Visual Studio 將在第一次運行 時自動請求開發者許可。爲了讓開發人員許可證沒有Visual Studio中運行 顯示,WindowsDeveloperLicenseRegistration功能在PowerShell中:

C:\Windows\system32>powershell 
Windows PowerShell Copyright (C) 2012 
Microsoft Corporation. All rights reserved. 

PS C:\Windows\system32> Show-WindowsDeveloperLicenseRegistration 

有關開發者許可 信息,請參閱:Get a developer license (Metro style apps)部署的應用,從Visual Studio中創建一個軟件包 Store.Build Pacakage菜單。構建它以供本地使用。將 生成的包複製到目標機器並運行附帶的 Add-AppDevPackage.ps1文件。又見Sharing an app package locally. --Rob