We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed5738 commit 61160f7Copy full SHA for 61160f7
ElectronNET.CLI/Commands/InitCommand.cs
@@ -91,6 +91,13 @@ private static void EditLaunchSettings(string currentDirectory)
91
// this is should solve the problem for 80% of the users
92
// for the other 20% we might fail...
93
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
101
string launchSettingText = File.ReadAllText(launchSettingFile);
102
103
if (launchSettingText.Contains("electronize start") == false)
0 commit comments