[英]How can I use VS2017 with Unity 2018
I'm new with Unity and I have problem with target .Net Framework version in the project. 我是Unity新手,项目中的目标.Net Framework版本有问题。 Visual Studio shows me this message …
Visual Studio向我显示此消息……
… but I already have .Net framework 3.5 installed. …但是我已经安装了.Net framework 3.5。 What can I do?
我能做什么?
Message: 信息:
The C# Project "Assembly-CSharp" is targetting ".NET Framework, Version=v3.5", which is not installed on this machine.
C#项目“ Assembly-CSharp”的目标是“ .NET Framework,版本= v3.5”,该机器上未安装。 To proceed, select an option below.
要继续,请在下面选择一个选项。
- Change the target to .Net Framework 4.6.1
将目标更改为.Net Framework 4.6.1
- Download the targeting pack for ".Net Framework, Version=v3.5"
下载“ .Net Framework,版本= v3.5”的定向包
- Do not load the project
不要加载项目
I faced this before. 我以前遇到过 You can download targeting pack for developer from microsoft.
您可以从Microsoft下载面向开发人员的定向包。 Done!
完成!
Found the fix! 找到了解决方法! go to this directory C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework.NETFramework
转到此目录C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework
Then create a folder named 4.6.1 然后创建一个名为4.6.1的文件夹
Copy all files from 3.5 folder Paste them all in 4.6.1 folder Done! 复制3.5文件夹中的所有文件将它们全部粘贴到4.6.1文件夹中完成!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.