HoloLens+VS的配置

VS2017 or VS09:

 

同时,附加需要选择安装:USB连接,否则从VS上传或网页打开时报错

Unity出现:error: "IOException: Win32 IO returned 234",原因是要拷贝的文件路径太长,对应的方法是缩短SDK安装路径,单独安装SDK,因为和VS一起会在默认路径安装,安装时需要通过修改注册表中的默认安装路径,减小前半部分的路径长度就行了

SDK下载路径:https://developer.microsoft.com/en-us/windows/downloads/sdk-archive

 

换了默认SDK路径后,导出的VS项目在编译时会出现:SDK“WindowsMobile, Version=10.0.18362.0”,原因是需要在默认路径验证一些文件,对应方法是:

 

导出VS项目出现以下错误时:

ArgumentException: An empty file name is not valid. Parameter name: sourceFileName System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:98) System.IO.File.Copy (System.String sourceFileName, System.String destFileName) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:86) PostProcessWSA.CopyTestCertificate () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWSA.cs:231) PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:141) UnityEditor.Metro.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:133) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

对应解决方案:

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章