Robert Muehsig
2017-11-04 22:42:08 +01:00
parent 9ed5738cac
commit 61160f7366

View File

@@ -91,6 +91,13 @@ namespace ElectronNET.CLI.Commands
// this is should solve the problem for 80% of the users
// for the other 20% we might fail...
var launchSettingFile = Path.Combine(currentDirectory, "Properties", "launchSettings.json");
if (File.Exists(launchSettingFile) == false)
{
Console.WriteLine("launchSettings.json not found - do nothing.");
return;
}
string launchSettingText = File.ReadAllText(launchSettingFile);
if (launchSettingText.Contains("electronize start") == false)