How to open file programmatically using EnvDTE in C#

前端 未结 2 1703
一个人的身影
一个人的身影 2021-01-13 10:09

How to open file programmatically using EnvDTE in C#.

2条回答
  •  野的像风
    2021-01-13 10:40

    Assuming you have a hook to the correct DTE instance...

    DTE.ExecuteCommand("File.OpenFile", "c:\\derp.txt");
    

提交回复
热议问题