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()

對應解決方案:

 

 

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