Launch exe file generated by Visual Studio 2015

若如初见. 提交于 2020-01-30 02:40:06

问题


I need to get a runnable .exe file from a simple Windows 10 universal app developed in VisualStudio 2015 community edition. This worked before on a windows 7 PC with Visual Studio 2012 (or maybe 2013), the .exe was located at MyProject/bin/x64/Debug, and I was able to run it.

Now, with Visual Studio 2015, I can still find the .exe file, but it gives me an error when I try to run it:

This application can only run in the context of an app container.

Is there a way to export an executable, without having a payed developer account?


回答1:


If it's a windows 10 universal app then you cannot run it with a exe file. You need to create the appxupload binary in visual studio. Here's the steps to follow to create the binaries.

Open the solution

Select Project-->Store-->Create App Packages

A dialog opens and select 'No' if you want to generate appx file for your own use. Then click next. In the next screen select create after checking the appropriate requirements.

Hope this helps your case. Check these links for screenshots.

https://www.dropbox.com/s/64fvm3huy64qqda/Capture.jpg?dl=0

https://www.dropbox.com/s/hw52n281u7rse1z/Capture1.jpg?dl=0



来源:https://stackoverflow.com/questions/32689944/launch-exe-file-generated-by-visual-studio-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!