VS无法解析Unity引用 [英] VS not able to resolve Unity References

查看:1294
本文介绍了VS无法解析Unity引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发Unity3D游戏,并在Unity3D(v5.2)中使用Unity(v4.1)的Visual Studio 2015工具.

I am trying to develop a Unity3D game, and using Visual Studio 2015 tools for Unity (v4.1), in Unity3D (v5.2).

当我在安装VSTU 4.1之后首次从Unity编辑器中打开脚本时,所有Unity引用(例如UnityEngine等)均被正确引用,并且IntelliSense正确地向我显示了所有建议,例如当我输入Ga ... it 迅速向我展示了GameObject ...等.

When I opened a script from Unity editor for the first time after installing VSTU 4.1, all the Unity references, like UnityEngine, etc, etc. were correctly referenced, and the IntelliSense showed me all the suggestions correctly, like when I typed Ga...it quickly showed me GameObject...etc.

但是,在关闭VS和Unity之后,第二天,当我再次打开它们时,我在Visual Studio中大多数引用(包括UnityEngine)的前面发现了这个小小的感叹号.得知这是因为VS无法引用 这些库正确.我检查了某些库的属性"中的文件路径,它们是正确的,但是VS仍未解决它们.因此,从那时起,IntelliSense就没有再向我显示建议.这减慢了我的发展 太多了.

However, after closing VS and Unity, when I opened them again, the next day, I found this little exclamation sign in front of most of the references in Visual Studio (including UnityEngine). It learned that this was because VS was not able to reference these libraries correctly. I checked the file path in the Properties of some libraries, and they were correct, but still, VS wasn't resolving them. And, therefore, IntelliSense does not show me suggestions since then. This slows my development way too much.

请帮助我解决此问题.

谢谢:)

Thanks :)

推荐答案

嗨anubhav756,

Hi anubhav756,

请转到控制面板"修复Visual Studio,以查看是否有帮助.

Please go to Control Panel to repair your visual studio to see if it helps.

如果没有帮助,请尝试创建一个新项目来测试此问题.

If it doesn't help, try to create a new project to test this issue.

请记住将反馈发送给我们.

Please remember to send the feedback to us.

最好的问候


这篇关于VS无法解析Unity引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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