的Visual Studio 2012网络共享 [英] Visual Studio 2012 Network Shares

查看:579
本文介绍了的Visual Studio 2012网络共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我模拟Windows 8在虚拟机上使用Parallels。我存储所有我的Mac上的分区,简单性和一致性我的开发项目。



当我尝试建立一个应用程序(的Visual Studio 2012)运行了网络共享的,我得到以下编译时错误:



错误1错误:DEP0700:应用程序的注册失败。因为文件是在网络共享上/Users/MY_USER_NAME/Sites/App1/App1/bin/Debug/AppX/AppxManifest.xml:拒绝请求从文件中注册:///态。注册包之前将文件复制到本地计算机复制。 (0x80073cf9)App1的



有谁知道如何解决这个问题呢?我需要告诉的Visual Studio 2012,我的网络共享是一个值得信赖的设备,或者至少是欺骗,以为该项目是在本地驱动器。 ?反正有没有在Windows中创建符号链接



在Visual Studio 2010中,我解决了这个问题,这个网站上所列出:的 http://www.sehajpal.com/index.php/2010/10/how -to-解决-loadfromremotesources错误,在VS-2010 /



感谢您的帮助!

解决方案

这篇文章由Gearard博兰解决了这个问题。希望这个就派上用场了为别人开发通过网络共享:






是的,这是由设计,您不能运行从Visual Studio中的网络驱动器和部署一个城域应用基本上是注册与系统中的应用程序,而无需实际包装和安装它(所以它不会投入正常的安装位置,这是本地的)。



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




  1. 您可以从本地调试切换到远程调试和设置机器名称为'localhost'的。这将做一个远程部署在本地机器上(因此不使用项目的目录)。你并不需要安装远程调试器的工具,也没有启动 msvsmon 此localhost上工作。

  2. 您可以覆盖项目的输出目录。该项目右键单击并改变输出目录类似: $(TEMP)\ $(MSBuildProjectName)\bin\ $(配置),其中温度是一个环境变量指向您的Temp目录。

  3. 如果您仍然希望正常输出旁边住该人士透露,例如当你建立了APPX包等,可以只覆盖布局目录,而不是整个输出路径。为此,您将需要直接修改项目文件(如:* .jsproj,* .csproj的,...)来添加新的值:



    <预类=郎-xml prettyprint-覆盖> <&的PropertyGroup GT;
    < LayoutDir> C:\WorkingFolder\ $(MSBuildProjectName)\ $(配置)LT; / LayoutDir>
    < /&的PropertyGroup GT;




希望有所帮助。



I emulate Windows 8 on a VM using Parallels. I store all of my developer projects on my Mac's partition for simplicity and coherence.

When I try to build an app (Visual Studio 2012) running off this network share, I get the following compile-time error:

Error 1 Error : DEP0700 : Registration of the app failed. Rejecting a request to register from file:///Z:/Users/MY_USER_NAME/Sites/App1/App1/bin/Debug/AppX/AppxManifest.xml because the files are on a network share. Copy the files to the local computer before registering the package. (0x80073cf9) App1

Does anyone know how to solve this issue? I need to tell Visual Studio 2012 that my network share is a trusted device, or at least dupe it into thinking the project is in a local drive. Is there anyway to create symbolic links in Windows?

In Visual Studio 2010, I solved this issue as outlined on this website: http://www.sehajpal.com/index.php/2010/10/how-to-solve-loadfromremotesources-error-in-vs-2010/

Thanks for the help!

解决方案

This post by Gearard Boland solves this issue. Hopefully this comes in handy for anyone else developing over a network share:

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\$(Configuration), where Temp is an environment variable pointing to your Temp directory.
  3. If you still want normal output to live next to the sources, e.g. when you build the appx package, etc., you can override only the layout directory instead of the entire output path. For this you'll need to modify your project file directly (e.g. *.jsproj, *.csproj, ...) to add the new value:

     <PropertyGroup>
        <LayoutDir>C:\WorkingFolder\$(MSBuildProjectName)\$(Configuration)</LayoutDir>
     </PropertyGroup>
    

Hope that helps.

这篇关于的Visual Studio 2012网络共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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