Unity3d项目崩溃了VSCode

时间:2015-10-23 16:37:19

标签: unity3d visual-studio-code

中型Unity3d项目。在OS X上的VSCode中打开正常,在Windows上的VSCode中打开它会导致深度冻结(和崩溃)。

到目前为止我发现了什么: Unity3d使用目标.Net framework" 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".

手动将目标框架切换为" v3.5"在.csproj文件中解析警告并避免VSCode冻结,但是一旦我向项目Unity添加新文件,就会重新生成.csproj文件。

为什么它适用于Mac,但拒绝在Windows上工作(没有修改)的任何想法?

1 个答案:

答案 0 :(得分:0)

解决了它。原来是集成插件将目标框架切换到" v2.0"来自Unity的默认(和工作)" v3.5"。

提交拉请求:)