我正在尋找寫一些代碼來打開Visual Studio命令提示符並移動到特定的行號。這是我到目前爲止:參數輸入VS12.0命令提示打開特定行號vb.net
Process.Start("C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts\Developer Command Prompt for VS2013.lnk", "/K devenv /edit FileLocation /command ""edit.goto LineNumber""")
命令提示符打開,但我有麻煩作出論據。命令:
devenv /edit FileLocation /command "edit.goto LineNumber"
作品的命令提示符下,但我不知道如何輸入此命令爲vb.net使用的Process.Start()
[在Visual Studio中以特定行號打開文件]的可能重複(http://stackoverflow.com/questions/350323/open-a-file-in-visual-studio-at-a-specific-行號) –
@TS我使用了該頁面的命令,而不是通過vb.net應用程序使用命令。 – user2823955