Unity 2017.10f3 .Net 4.6目标问题 [英] Unity 2017.10f3 .Net 4.6 target issue

查看:189
本文介绍了Unity 2017.10f3 .Net 4.6目标问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将播放器设置API更新为4.6(已记录). 但是我的项目仍然针对3.5.

I've updated the player settings API to be 4.6 as documented. But my project is still targeting 3.5.

我还尝试将csproj手动更新为4.6 但是在打开单位后,它再次将其覆盖为3.5.

I also tried to manually update the csproj to 4.6 But after unity was opened it overrided it again to 3.5.

请注意,我已将Visual Studio Tools for Unity更新到最新版本(3.1.0.0)

Notice that I've update the Visual Studio Tools For Unity to the latest version (3.1.0.0)

我想念什么吗? 这是一个已知的错误?如果是这样,是否有解决方法?

Anything I'm missing? Is this a known bug? If so, is there a workaround?

推荐答案

您必须从编辑器本身启用此功能.顺便说一句,您现在可以下载不再处于beta模式的最新版本.

You have to enable this from the Editor itself. By the way, you can now download the latest version which is no longer in beta mode.

转到编辑"->项目设置"->播放器"->其他设置"->配置"->脚本运行时版本"->.NET 4.6等效"

Go to Edit --> Project Settings --> Player --> Other Settings --> Configuration --> Scripting Runtime Version --> .NET 4.6 Equivalent

然后

转到编辑"->项目设置"->播放器"->其他设置"->配置"->"Api兼容性级别"->.NET 4.6

Go to Edit --> Project Settings --> Player --> Other Settings --> Configuration --> Api Compatibility Level --> .NET 4.6

此菜单可能已更改,但以前是这个位置,我希望它在该菜单下或该菜单下.

This menu may have changed but this where it used to be and I expect it to be there or under that menu.

您必须重新启动Unity Editor,然后重新启动Visual Studio才能使这些更改生效.

You must restart Unity Editor then restart Visual Studio to make these changes to take effect.

.NET 4.6等效项" 菜单已更改为实验(.Net 4.6等效项)" .

如果重新启动Unity和Visual Studio之后,但版本仍然不变,请重新安装Unity和Visual Studio,并确保您正在运行最新版本的Visual Studio.

If after restarting both Unity and Visual Studio but the version is still not changing, re-install both Unity and Visual Studio and make sure that you are running the latest version of Visual Studio.

在重新安装Visual Studio之前-确保安装了最新更新,如果没有尝试先更新的话.

Before re-installing visual studio - make sure you installed the latest update, if not try to update first.

这篇关于Unity 2017.10f3 .Net 4.6目标问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆