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

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

问题描述

我是Unity新手.我想使用最新版本的.Net.好像.Net版本只是最近才升级到.Net 4.6,如此博客文章中所述:

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.

您可以从此

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的Android和Mono.

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 .它仍处于beta模式.

Unity 2017.1.0b1 is now released and it supports .NET 4.6. It is still 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

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

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