Reputation: 4318
I am trying to open a file in an open project in Visual Studio using the extension API. I found this
http://msdn.microsoft.com/en-us/library/vstudio/bb164729(v=vs.110).aspx
and
but I don't understand how to implement it. Is there any guide for it or am I looking in the wrong place?
Upvotes: 4
Views: 1537
Reputation: 18025
Look here:
Usage:
DTE.ExecuteCommand("File.OpenFile", @"C:\path\to\source_file.cs");
TIP:
To test the method open VS Command Window and simply type File.OpenFile
Upvotes: 3