具有unity3D的Visual Studio无法像以前那样工作 [英] Visual studio with unity3D wont work like it used to be

查看:163
本文介绍了具有unity3D的Visual Studio无法像以前那样工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在互联网上搜索了一个星期,当我升级到Unity 5.3.2或5.3.3时我找不到任何分辨率,即使我升级到Unity 5.4 Beta仍然没有,我不记得它破坏了我的视觉工作室有办法解决这个问题吗?迫在眉睫,需要使用Visual Studio,因为它的代码编辑器更简单,用户界面更友好

I've searched the internet for a week i couldn't find any resolution when i upgraded to unity 5.3.2 or 5.3.3 i cant remember it just break my visual studio even when i upgrade to unity 5.4 beta still doesnt work any way to fix thiS? im desperate and in need to use visual studio because its easier and user-friendly code editor

没有颜色(没有智能感觉),当我尝试使用unity3d变量(如transform.rotatetoward)时,它什么也没显示

Theres no color(no intelli-sense) and when i tried to use unity3d variable like transform.rotatetoward it doesnt show anything

在这里说我启用了我的Visual Studio工具

And over here it says that i enabled my visual studio tools

我尝试了无数种方法来解决此互联网问题

i tried countless way to do this fix around the internet

  • 通过重新安装unity3d和Visual Studio
  • 删除所有.sln,.csproject,vscode文件夹,以便统一将生成一个新文件夹.
  • 我尝试使用插件将统一与Visual Studio联系起来

它不再工作了

我的视觉工作室信息

Microsoft Visual Studio Community 2015 版本 14.0.23107.0 D14REL

Microsoft visual studio community 2015 version 14.0.23107.0 D14REL

已安装的产品

Installed products

Visual Basic 2015 00322-20000-00000-AA455

Visual basic 2015 00322-20000-00000-AA455

Visual c#2015 00322-20000-00000-AA455

Visual c# 2015 00322-20000-00000-AA455

Visual C ++ 2015 00322-20000-00000-AA455

Visual C++ 2015 00322-20000-00000-AA455

Visual Studio软件包的Application Insights工具 1.0

通用Azure工具 1.5

GenerateUnitTest 1.0

Microsoft Azure移动服务工具 1.4

NuGet Packkage Manager 3.0.0

PreEmptive Analytics Visualizer 1.2

产品详细信息:

Product Details:

Microsoft Visual Basic 2015

Microsoft Visual Basic 2015

推荐答案

在某些操作系统上,这是一个 bug ,因为上周我发生了同样的事情.这可能是由于Windows自动更新损坏了某些东西.当前的解决方法是统一打开C#文件.

This a bug on some operating systems because the-same thing happened to me last week. This maybe due to Windows auto update that broke something. The current workaround is to not open your C# file from unity.

相反,转到资产-> 在资源管理器中显示,然后打开扩展名为 .sln 的项目名称.

Instead, go to Assets->Show in Explorer then open the name of the project with the .sln extension.

然后在Visual Studio中打开您的C#文件,在 Visual Studio 的右侧有一个 Window .在其下,选择一个名为 Solution Explorer 的标签.在那里您可以打开C#文件.

Then to open your C# file in visual studio, there is a Window on the right side of Visual Studio. Under it, select a tab called Solution Explorer. There you can open your C# file.

一切都会恢复正常,并且不会以其他文件的形式打开C#文件.这样,您应该从 Visual Studio 打开文件,直到Unity修复此错误为止.

Everything will be back to normal and it wont open the C# file as Miscellaneous file. This is how you should be opening your files from Visual Studio until Unity fixes this bug.

这篇关于具有unity3D的Visual Studio无法像以前那样工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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