VS Code中的Omnisharp会产生很多有关Unity项目的警告.为什么? [英] Omnisharp in VS Code produces a lot of warnings about a Unity project. Why?
问题描述
Omnisharp会产生很多有关Unity项目的警告.为什么?
Omnisharp in VS Code produces a lot of warnings about a Unity project. Why?
当我从Unity编辑器中以VS Code打开脚本时,会看到以下内容:
When I open a script in VS Code from a Unity Editor here is what I see:
Omnisharp产生警告.以下是其中一些:
The Omnisharp produces warning. Here are a few of them:
[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
发生的原因,我该如何解决?
Does anyone know why the warnings
happen and how could I fix them?
我不确定我还应该提供什么以成功诊断该问题.因此,请您发表评论,以防万一我不得不告诉其他有关成功诊断问题的信息.
I am not sure what else should I provide for a successful diagnose of the issue. So, could you, please, ask in comments in case I have to tell something else about the issue for a successful diagnose.
我有1.42.1
VS Code版本:
I have the 1.42.1
VS Code version:
推荐答案
This warnings is a known Visual Studio Code Editor 1.1.4 bug, you can ignore it. For me, downgrading to version 1.1.3 of the package fixed the problems.
这篇关于VS Code中的Omnisharp会产生很多有关Unity项目的警告.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!