[unity] build项目报错:Currently selected scripting backend (.NET)is not installed

[Unity] Currently selected scripting backend .NET is notinstalled

  • Unity build项目报错,没有安装 .NET
    • 问题概况
    • Unity 附加模块
    • visual studio 的 各种.NET插件

Unity build项目报错,没有安装 .NET

问题概况

在build使用在Hololens上的项目时,遇到这么一个配置环节:
把设置里面Player目录下的Other Settings里面的Scripting Backend选项改成 .NET,如下图
[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第1张图片
但是在build项目时,却发现出了这样的错误:
[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第2张图片
错误原文

Error:Currently selected scripting backend (.NET)is not installed,

Warning:.NET scripting backend for UWP has been deprecated andwill be removed in a future Unity release. We recommendswitching to IL2CPP scripting backend.

这个错在win10SDK,visual studio那边查了半天,最后发现是unity这边安装出了问题。下面整理一下关于 .NET需要配置的步骤

Unity 附加模块

Unity download assistant
追加安装包的方法有两种,第一种就是找到安装时的安装助手(Unity download assistant)重新打开,勾选与UWP和.NET有关的包(图上就一个,但是有的版本需要勾选多个),不用勾选vs或者unity。
[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第3张图片
Unity Hub
或者安装一个Unity Hub,便捷管理各种Unity版本,安装各种插件。
安装->添加->选择版本(在这里我发现已经安装的版本就不能安装新的组件了,不知道为什么)->下一步
然后选择模块就可以了

[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第4张图片
然后等待这个版本下好就完事了
[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第5张图片

visual studio 的 各种.NET插件

首先打开visual studio installer,选择你在用的那个版本,更多->修改
[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第6张图片
修改界面打开后,单个组件->.NET全家桶来一套。。。当时我为了排除bug,把所有版本都安装了,这样很傻,讲道理应该安装最新的就行了。

[unity] build项目报错:Currently selected scripting backend (.NET)is not installed_第7张图片
这两步结束后重启unity, 再build就可以了。

参考资料
https://stackoverflow.com/questions/42729935/unity3d-currently-selected-scripting-backend-net-is-not-installed

你可能感兴趣的:(Unity)