Skip to content

Commit 61160f7

Browse files
committed
fix for #30
1 parent 9ed5738 commit 61160f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ElectronNET.CLI/Commands/InitCommand.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ private static void EditLaunchSettings(string currentDirectory)
9191
// this is should solve the problem for 80% of the users
9292
// for the other 20% we might fail...
9393
var launchSettingFile = Path.Combine(currentDirectory, "Properties", "launchSettings.json");
94+
95+
if (File.Exists(launchSettingFile) == false)
96+
{
97+
Console.WriteLine("launchSettings.json not found - do nothing.");
98+
return;
99+
}
100+
94101
string launchSettingText = File.ReadAllText(launchSettingFile);
95102

96103
if (launchSettingText.Contains("electronize start") == false)

0 commit comments

Comments
 (0)