簡體   English   中英

Unity3d項目使VSCode崩潰

[英]Unity3d project crashes VSCode

中型Unity3d項目。 在OS X上的VSCode中打開正常,在Windows上的VSCode中打開它將導致深度凍結(並崩潰)。

到目前為止,我發現:Unity3d使用目標.Net框架“ v2.0”創建.csproj文件。 目標在開發環境之間保持不變。 OmniSharp記錄許多警告,例如:

[WARNING:OmniSharp.MSBuild.MSBuildProjectSystem] The primary reference "System.Xml.Linq" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".

在.csproj文件中手動將目標框架切換為“ v3.5”可以解決警告並避免VSCode凍結,但是一旦我向項目添加新文件,Unity就會重新生成.csproj文件。

有什么想法為什么可以在Mac上運行,但拒絕(未經修改)在Windows上運行?

解決了。 原來是集成插件將目標框架從Unity的默認(正在運行)“ v3.5”切換到了“ v2.0”。

拉取請求已提交:)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM