Can't open script via Visual Studio (only last 2 days)

I used to use Visual Studio to edit my c# scripts but last 2-3 days troubles appiears.

When I double-click on c# script, it starts to load Visual Studio, load it, and after 1 sec it dissapears (crash, quit), and then Mono opens.

Now I can edit my c# script only via opening my “*-sharp.sln” in Visual Studio and only THEN open my c# scripts in Unity.

Can somebody help with that issue?

I had similar problems, whenever I tried to open a script it would open VS but would fail to open the solution or file. I was able to solve it by starting unity with admin privileges.

It’s a common problem, AFAIK the cause in not really identified.
Here is a fix: Why Unity3D can't open Visual Studio 2012? - Unity Answers

P.-S. You should have had searched for your question before ask a new one :wink:

Follow these instructions :

  1. Select MonoDevelop as your default script editor Unity.
  2. Restart Unity.
  3. Re-select your external script editor as default.
  4. Double click on any script you have in Unity to open up Visual Studio.

I had the same problem. Seems simple but I took care of it following those. Good luck