Process.Start deleting source code in Visual Studio debug when trying to start devenv

Thurboman

New member
Joined
Feb 3, 2009
Messages
1
Programming Experience
1-3
I think this a weird problem but I'm not sure what to do.

I'm writing an application which is used to help with SSRS development and I need to it to open Visual Studio to allow for reports to be edited.

I've got this code which should launch devenv.exe with the path of the report project that I want to open:

VB.NET:
myProcessProperties.FileName = My.Settings.VisualStudioExePath
    myProcessProperties.Arguments = projectPath
    Dim myProcess As Process = Process.Start(myProcessProperties)

However, when I run this in debug mode, it deletes the code from Visual Studio and I have to do Undo to get some back but not all of it.

Am I missing something?

Thanks in advance.

Martyn.
 

Latest posts

Back
Top