为什么我看不到 API 兼容级别的 .Net 4.6 选项? [英] Why can't I see .Net 4.6 option for API Compatibility Level?

查看:34
本文介绍了为什么我看不到 API 兼容级别的 .Net 4.6 选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Unity 的新手.我想使用最新版本的 .Net.似乎 .Net 版本最近才升级到 .Net 4.6,如本博文所述:https://forum.unity3d.com/threads/upgraded-mono-net-in-editor-on-5-5-0b4.433541/.我在博客文章中描述的 API 兼容性级别设置中没有看到 .Net 4.6.我已经在 Unity 5.5.2f1 和 Unity 5.6.0b9 上尝试过这个.我可能会遗漏什么?

I am new to Unity. I want to use the latest version of .Net. It seems as though the .Net version has only very recently been upgraded to .Net 4.6 as described in this blog post: https://forum.unity3d.com/threads/upgraded-mono-net-in-editor-on-5-5-0b4.433541/. I do not see .Net 4.6 in the API compatibility level setting described in the blog post. I have tried this with Unity 5.5.2f1 and Unity 5.6.0b9. What might I be missing?

推荐答案

我想使用最新版本的 .Net.

I want to use the latest version of .Net.

不能使用官方的 Unity 版本.

You can't with the official Unity version.

似乎 .Net 版本是最近才出现的升级到 .Net 4.6,如本博文所述:

It seems as though the .Net version has only very recently been upgraded to .Net 4.6 as described in this blog post:

这是一个特殊 Unity 版本,仅用于实验目的.这并不意味着用于运送您完成的游戏.

That is a special version of Unity that is only used for experimental purposes. That is not meant to be used to ship your finished game.

.Net 4.6 尚未得到官方支持.它已经在开发中,可能会在今年年底获得支持.

.Net 4.6 is not officially supported yet. It's been worked on and will likely be supported by the end of this year.

您可以使用此链接.它将让您在编辑器上使用 .Net 4.6.它不适用于构建,因为其他平台的运行时间尚未完成.

You can use the unofficial/experimental version 5.6.0b5 from this link. It will let you use .Net 4.6 on the Editor. It will not work on builds because the run-time for other platforms are not yet finished.

如果您下载此文件,您就是在帮助 Unity 改进他们的 .Net 4.6.不要下载它,因为您想使用来自 .Net 4.6 的 API 来发布您的游戏.

If you download this, you are helping Unity improve their .Net 4.6. Don't download it because you want to release your game with APIs' from .Net 4.6.

编辑:

对于最新的实验版本,Windows、OSX、Linux 独立版带有 IL2CPP 的 iOS 现在支持带有 IL2CPP 和 Mono 的 Android.

For the latest experimental release, Windows, OSX, Linux standalone iOS with IL2CPP Android with IL2CPP and Mono are now supported.

虽然,仍有一些错误需要修复,许多平台尚不支持.这就是为什么你不应该用这个来发布你的游戏.

Although, there are still bugs to fix, and many platforms are not yet supported. That's why you should not release your game with this.

编辑 2:

Unity 2017.1.0b1 现已发布并支持.NET 4.6.它仍处于测试模式.

转到编辑 --> 项目设置 --> 播放器 --> 其他设置 --> 配置 --> 脚本运行时版本 --> .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

这篇关于为什么我看不到 API 兼容级别的 .Net 4.6 选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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