【问题标题】:Unity3d project crashes VSCodeUnity3d项目崩溃VSCode
【发布时间】:2015-10-23 16:37:19
【问题描述】:

中型 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 上运行(未经修改)?

【问题讨论】:

标签: unity3d visual-studio-code


【解决方案1】:

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

拉取请求已提交:)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多