简体   繁体   English

Visual Studio 2015发布未在Windows 10 Surface 3上安装

[英]Visual Studio 2015 publish not installing on Windows 10 Surface 3

Having completed my project in Visual Studio 2015 community edition, I "published" the project to a cd. 在Visual Studio 2015社区版中完成我的项目后,我将该项目“发布”到了CD中。 I then copied the published directory to a Windows 10 Surface 3. In an elevated cmd prompt (as administrator), I then ran the setup.exe file created with the published project. 然后,我将发布的目录复制到Windows 10 Surface3。在提升的cmd提示符下(以管理员身份),然后运行用发布的项目创建的setup.exe文件。

The application loads and runs without error. 该应用程序加载并运行没有错误。 But, when the program is exited, it does not show up in the windows 10 start menu or application list. 但是,退出程序后,它不会显示在Windows 10的开始菜单或应用程序列表中。 Furthermore, checking the installed programs shows that the just ran program is not installed. 此外,检查已安装的程序会显示尚未安装刚运行的程序。

What am I doing wrong? 我究竟做错了什么?

I am the administrator on the Surface 3. (Should be noted, that the same visual studio 2015 program was used to create other applications that were successfully published and loaded on windows 10 machines that were not the Surface 3). 我是Surface 3的管理员。(应注意,同一Visual Studio 2015程序用于创建其他已成功发布并加载到非Surface 3的Windows 10机器上的应用程序)。

TIA for any suggestions on this. TIA对此有任何建议。

Simple solution -- but took much exploring. 简单的解决方案-但需要大量探索。 Go to the "Publish" tab on the project properties. 转到项目属性上的“发布”选项卡。 Under Install Mode and Settings. 在安装模式和设置下。 Check √ The application is available offline as well (launchable from Start menu). 选中√该应用程序也可以脱机使用(可从“开始”菜单启动)。 Publish with "Publish Now". 使用“立即发布”进行发布。

Now when the publish directory was copied to the Surface 3 and setup run, the application is correctly listed on the start menu. 现在,当将发布目录复制到Surface 3并进行设置运行时,该应用程序将正确显示在开始菜单上。 (I'm sure this is mentioned somewhere else on SO, but I couldn't find it). (我确定这是在SO的其他地方提到的,但我找不到它)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM