6

Parallels를 사용하는 VM에서 Windows 8을 에뮬레이트합니다. 모든 개발자 프로젝트를 내 Mac 파티션에 저장하여 단순성과 일관성을 유지합니다. Visual Studio 2012 네트워크 공유

내가 응용 프로그램을 빌드하려고

은 (비주얼 스튜디오 2012)이 네트워크 공유를 실행, 내가받을 다음과 같은 컴파일 타임 오류 :

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

사람이이 문제를 해결하는 방법을 알고 있나요? Visual Studio 2012에 내 네트워크 공유가 신뢰할 수있는 장치라고 알려주거나 프로젝트가 로컬 드라이브에 있다고 생각하도록 최소한 침투해야합니다. Windows에서 심볼릭 링크를 만들 수 있습니까? 도움을 http://www.sehajpal.com/index.php/2010/10/how-to-solve-loadfromremotesources-error-in-vs-2010/

감사합니다 : 비주얼 스튜디오 2010 년

, 나는이 웹 사이트에 설명 된대로이 문제를 해결!

+0

: 다른 사람이 네트워크 공유를 통해 개발을위한 희망이 편리? – spender

+1

귀하의 마일리지는 개발중인 앱의 유형에 따라 다릅니다. 제 경우에는 Windows 8 메트로 앱을 개발하고있었습니다. 앱을 컴파일 할 때 Windows는 암시 적으로 설치되도록 앱에 서명합니다. 보안 문제로 인해 네트워크 공유를 사용하지 않는 경우에는 작동하지 않습니다. 우려 사항이 있으면 아래 게시 된 링크를 확인하십시오. 빠른 해결책은 앱을 실행중인 Windows에 알려주는 것입니다. 떨어져서. – Alex

+0

간단한 답을 http://stackoverflow.com/questions/12126918/registration-of-app-failed-the-files-are-on-a-network-share-copy-the-fi. VS2017에서 작동하도록 확인되었습니다. –

답변

14

This post by Gearard Boland이이 문제를 해결합니다.

는 VS 2012 년 같은 작동하지 않습니다

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.