@@ -100,15 +100,16 @@ private static void EditLaunchSettings(string currentDirectory)
100100
101101 string launchSettingText = File . ReadAllText ( launchSettingFile ) ;
102102
103- if ( launchSettingText . Contains ( "electronize start " ) == false )
103+ if ( launchSettingText . Contains ( "\" executablePath \" : \" electronize \" " ) == false )
104104 {
105105 StringBuilder debugProfileBuilder = new StringBuilder ( ) ;
106106 debugProfileBuilder . AppendLine ( "profiles\" : {" ) ;
107- debugProfileBuilder . AppendLine ( "\" Electron.NET App\" : {" ) ;
108- debugProfileBuilder . AppendLine ( "\" commandName\" : \" Executable\" ," ) ;
109- debugProfileBuilder . AppendLine ( "\" executablePath\" : \" C:\\ \\ Program Files\\ \\ dotnet\\ \\ dotnet.exe\" ," ) ;
110- debugProfileBuilder . AppendLine ( "\" commandLineArgs\" : \" electronize start\" " ) ;
111- debugProfileBuilder . AppendLine ( "}," ) ;
107+ debugProfileBuilder . AppendLine ( " \" Electron.NET App\" : {" ) ;
108+ debugProfileBuilder . AppendLine ( " \" commandName\" : \" Executable\" ," ) ;
109+ debugProfileBuilder . AppendLine ( " \" executablePath\" : \" electronize\" ," ) ;
110+ debugProfileBuilder . AppendLine ( " \" commandLineArgs\" : \" start\" ," ) ;
111+ debugProfileBuilder . AppendLine ( " \" workingDirectory\" : \" .\" " ) ;
112+ debugProfileBuilder . AppendLine ( " }," ) ;
112113
113114 launchSettingText = launchSettingText . Replace ( "profiles\" : {" , debugProfileBuilder . ToString ( ) ) ;
114115 File . WriteAllText ( launchSettingFile , launchSettingText ) ;
0 commit comments