我為 Unity 安裝了 Vscode,但是,當我進行一些編碼并將其匯入統一時,這會顯示:
Error detecting Visual Studio installations: System.ComponentModel.Win32Exception (0x80004005): ApplicationName='D:\FindersKeepers\Thanatos's punishment\Library\PackageCache\com.unity.ide.visualstudio@2.0.14\Editor\VSWhere\vswhere.exe', CommandLine='-prerelease -format json -utf8', CurrentDirectory='', Native error= The system cannot find the file specified.
UnityEngine.Debug:LogError (object)
Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor:DiscoverInstallations () (at Library/PackageCache/[email protected]/Editor/VisualStudioEditor.cs:59)
Microsoft.Unity.VisualStudio.Editor.AsyncOperation`1<Microsoft.Unity.VisualStudio.Editor.IVisualStudioInstallation[]>:<Run>b__6_0 (object) (at Library/PackageCache/[email protected]/Editor/AsyncOperation.cs:38)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()
我必須安裝一些東西嗎?
uj5u.com熱心網友回復:
嘗試此處建議的提示: 我在 Unity 中使用我的 c# 代碼收到一些錯誤訊息
嘗試去編輯>設定>外部工具>為您的外部腳本編輯器安裝正確的vs版本,然后單擊“恢復專案檔案”按鈕。
在這里: https ://forum.unity.com/threads/error-detecting-visual-studio-installations.902792/
在 Unity 中打開包管理器,找到專案中安裝的“Visual Studio Code”包。將其更新到新版本
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/467338.html
上一篇:MySQL更新和加入
