gpt4 book ai didi

unity3d - VS Code 中的 Omnisharp 会产生很多关于 Unity 项目的警告。为什么?

转载 作者:行者123 更新时间:2023-12-03 16:53:18 24 4
gpt4 key购买 nike

VS Code 中的 Omnisharp 会产生很多关于 Unity 项目的警告。为什么?

当我从 Unity 编辑器在 VS Code 中打开脚本时,我看到的是:

enter image description here

Omnisharp 发出警告。这里有几个:

[warn]: OmniSharp.MSBuild.ProjectLoader
The referenced project 'Unity.Timeline.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
The referenced project 'Unity.VSCode.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
The referenced project 'Unity.TextMeshPro.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
The referenced project 'UnityEngine.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
The referenced project 'Unity.Timeline.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
...
[warn]: OmniSharp.MSBuild.ProjectManager
Expected project reference c:\Projects\Unity\Combo Bombo\Unity.2D.Sprite.Editor.csproj to be already loaded for project Assembly-CSharp
[warn]: OmniSharp.MSBuild.ProjectManager
Expected project reference c:\Projects\Unity\Combo Bombo\Unity.2D.Tilemap.Editor.csproj to be already loaded for project Assembly-CSharp
[warn]: OmniSharp.MSBuild.ProjectManager
Expected project reference c:\Projects\Unity\Combo Bombo\Unity.TextMeshPro.csproj to be already loaded for project Assembly-CSharp
[warn]: OmniSharp.MSBuild.ProjectManager
Expected project reference c:\Projects\Unity\Combo Bombo\UnityEditor.UI.csproj to be already loaded for project Assembly-CSharp

有谁知道为什么 warnings发生了,我该如何解决?

我不确定我还应该提供什么才能成功诊断问题。所以,请您在评论中提问,以防我必须就成功诊断的问题说点其他的东西。

我有 1.42.1 VS代码版本:

enter image description here

最佳答案

此警告是已知的 Visual Studio Code Editor 1.1.4 bug,可以无视。对我来说,降级到版本 1.1.3 的包修复了问题。

enter image description here

关于unity3d - VS Code 中的 Omnisharp 会产生很多关于 Unity 项目的警告。为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60355637/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com