The "possible duplicate" aims at opening the file, like in Notepad, I am looking for opening .csproj/.sln file not as just raw text file, but as full project/solution, so for example if my path is for .sln file, entire solution should be opened, not just literally single .sln file.
I open project/solution this way:
var psi = new System.Diagnostics.ProcessStartInfo(path);
System.Diagnostics.Process.Start(psi);
where path
is path to project/solution. It works fine, but it launches another Visual Studio to open the given file.
I would like to open project/solution in already running VS (if there is none, in such case, sure launch VS as well).
How to do it?