Unity 解决方案与 Visual Studio 不兼容 [英] Unity solution not compatible with visual studio

查看:114
本文介绍了Unity 解决方案与 Visual Studio 不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从更新到最新版本的 Unity 5.4.0f3 后,每当我双击脚本时,它都会同时启动 Visual Studio 和 Monodevelop,但我收到一条错误消息,指出此版本的 VS (Community 2015) 无法启动打开我的项目.Monodevelop 显示它自己的,不太清楚的错误消息.请查看下面的屏幕截图.

Since updating to the most recent version of Unity 5.4.0f3, whenever I doubleclick on a script, it launches both Visual Studio and Monodevelop, but I get an error saying that the this version of VS (Community 2015) is unable to open my project. Monodevelop displays it's own, somewhat less clear error message. Please see the screen shots below.

我仍然可以使用 Visual Studio 的文件菜单手动打开我的脚本,但智能感知代码完成不再有效.有人知道怎么修这个东西吗?我安装了 Visual Studio 的 Unity 工具.

I can still manually open my script using Visual Studio's file menu, but the intellisense code completion no longer works. Anyone know how to fix this? I have Visual Studio's Tools for Unity installed.

推荐答案

原来是我现有的 Visual Studio Tools for Unity (VSTU) 安装存在问题.

Turns out it was an issue with my existing install of Visual Studio Tools for Unity (VSTU).

我发现了一个帖子,其中用户遇到了类似的问题,原因是在 Unity5.2 及更高版本上运行的 VSTU 版本不受支持.Unity 5.2+ 需要 VSTU 2.1 或更高版本才能让 VS 与 Unity 一起正常工作,任何感兴趣的人都可以在文档中获得更多信息 此处.

I found a thread where users had experienced similar problems due to an unsupported version of VSTU running on Unity5.2 and beyond. Unity 5.2+ requires VSTU 2.1 or later for VS to work correctly with Unity, more information for anyone interested is available in the documentation here.

我安装了 VSTU 2.3,但是删除并重新安装 VSTU 解决了这个问题,所以我的安装肯定有问题.如果其他人有这个或类似的问题,你可以下载最新的 VSTU 安装程序 这里.感谢所有参与您的回复的人帮助我找到了正确的位置!

I had VSTU 2.3 installed, but removing and reinstalling VSTU resolved the issue, so there must have been a problem with my install. If anyone else has this or a similar issue you can download the latest installer for VSTU here. Thanks to all who chimed in your responses helped me look in the right place!

这篇关于Unity 解决方案与 Visual Studio 不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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