无法注册应用程序 [英] Can't register app

查看:92
本文介绍了无法注册应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Win8 CP和VS 11 Express Beta,我无法根据网格模板注册空项目。错误是注册请求被拒绝,因为文件位于网络共享上。在这种特殊情况下,"我的文件"将
重定向到服务器并启用了离线缓存,因此,那里的文件实际上似乎在网络共享上。这不是DevPreview中的问题。是否有某种解决方法,或者它可能是一个错误?让
将我的源文件放在My Docs之外真的很痛苦,因为这是在多台机器上同步的。谢谢。

解决方案

是的,根据设计,您无法从网络驱动器运行Metro应用程序,从Visual Studio部署实际上是使用系统注册应用程序没有实际包装和安装它(因此它不会被放入正常的安装位置,
是本地的)。


您仍然可以使用网络驱动器上的源,但您必须覆盖部署位置,默认情况下位于项目的根目录下(例如bin \)。 您有以下几种选择:


1)您可以从本地调试切换到远程调试,并将机器名称设置为"localhost"。 这将在本地计算机上进行远程部署(因此不使用项目的目录)。 您不需要安装Remote Debugger
工具,也不需要启动msvsmon才能在localhost上工作。


2)您可以覆盖项目的输出目录。 右键单击项目并将输出目录更改为:


(Temp)\


(MSBuildProjectName)\ bin \

Using the Win8 CP and VS 11 Express Beta, I can't register an empty project based on the grid template. The error is that the request to register is being rejected because the files are on a network share. In this particular case, "My Documents" is redirected to a server and I have offline caching enabled so, the files there would actually appear to be on a network share. This was not an issue in the DevPreview. Is there some kind of work around for this, or perhaps it's a bug? It would really be painful to have to have my source files outside My Docs as this is synced across numerous machines. Thanks.

解决方案

Yes, it's by design that you cannot run a Metro app from a network drive and deployment from Visual Studio essentially registers the app with the system without actually packaging and installing it (so it doesn't get put into the normal install location, which is local).

You can still work with sources on a network drive, but you'll have to override the deployment location, which by default is under the project's root directory (e.g. bin\).  You have several options:

1) You can switch from local debugging to remote debugging and set the machine name as 'localhost'.  This will do a remote deployment on your local machine (thus not using the project's directory).  You don't need to install the Remote Debugger tools, nor start msvsmon for this to work on localhost.

2) You can override the project's output directory.  Right-click on the project and change the output directory to something like:


(Temp)\


(MSBuildProjectName)\bin\


这篇关于无法注册应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆