错误检测 Visual Studio 个安装 Unity

Error detecting Visual Studio installations Unity

我为 Unity 安装了 Vscode,但是当我进行一些编码并将其导入到 unity 时,显示如下:

    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/com.unity.ide.visualstudio@2.0.14/Editor/VisualStudioEditor.cs:59)
Microsoft.Unity.VisualStudio.Editor.AsyncOperation`1<Microsoft.Unity.VisualStudio.Editor.IVisualStudioInstallation[]>:<Run>b__6_0 (object) (at Library/PackageCache/com.unity.ide.visualstudio@2.0.14/Editor/AsyncOperation.cs:38)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

我需要安装什么吗?

尝试此处建议的提示: I'm getting few error message in Unity with my c# code

Try going to Edit > Settings > External Tools> Install the correct vs version for your external script editor, and then click the "Restore Project Files" button.

这里: https://forum.unity.com/threads/error-detecting-visual-studio-installations.902792/

Open the Package Manager in Unity and find the "Visual Studio Code" package that is installed in your project. Update it to the new version