"Opening Visual Studio" modal hangs, never opens Visual Studio

I just installed Unity 5 and created the first project. Then installed the Visual Studio 2013 Tools for Unity plugin. Created a script, and changed the External Script Editor to Visual Studio 2012. Created a new script, then double clicked it. A modal pops up in Unity just hangs there (screenshot below). After a few seconds Monodevelop opens the script, but the Modal in Unity is still there. I realized I downloaded VS2013 plugin instead of VS2012. So I installed the Visual Studio 2012 Tools for Unity plugin, but the modal still hangs there.

I’ve tried restarting my computer and creating a new project, but the modal still hangs. If you’ve seen this before and know how to fix it, let me know.

I should note that the typical Windows loading animation plays on the progress bar. I can also still interact with the Unity UI.

Bump for visibility, still having this problem.

Import the Visual Studio tools into your project (Assets / Import / …), close the project, then open it again. Don’t set the External Script Editor to Visual Studio, just let the scripts set it they way they want it. You should find it loads Visual Studio much more reliably after doing this.

The hitch is that the External Script Editor setting is global, so you do need to import Visual Studio Tools into every project you work on. It’s pretty easy to do that though when you’re used to it.

Thanks for your suggestion gfoot. I tried it, but it still wouldn’t open in Visual Studio.

In case anyone has this problem, I was able to solve it by installing VS 2013 and uninstalling and re-installing Unity.

This might help:
Run Unity as an administrator(right click, then choose Run As Administrator).

I had set Visual Studio to run as administrator by default, while I always ran Unity without any administrator privilege. I guessed this might be the issue, so I ran Unity as administrator, and it worked.

1 Like

I’m having the same problem described in the OP, although I only installed Unity about 2 weeks ago and it came with Visual Studio 2015 Community instead of VS 2013.

I have tried running Unity as Administrator and it made no difference.

I can try uninstalling & reinstalling Unity 5 later tonight; do I need to make sure that VS2015 is installed first?

Hey benjigga,

Personally, Im happy with MonoDevelop and the Visual studio loader would just be annoying and get in the way. So I just set MonoDevelop as my External Script editor and the problem never happened again.

Thanks!

Bumping because neither fix worked.

Thanks, this helped!

Hi, I had the same problem. “Run Unity as Administrator” did the job. Thx :slight_smile:

the admin thing worked. Thanks!

still takes ages to open though. Why so slow?

Thank you! Worked for me

Came back here to say that I had a similar thing happen. In 2021, I found it’s because Visual Studio crashed last time I used it - I opened VS by itself, recovered a backup, then it all appeared to work again opening from Unity. Hope this helps!

1 Like