Skip to content

Commit c0bf257

Browse files
Increase startup time #356 🚀
1 parent 62b37d0 commit c0bf257

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ElectronNET.CLI/Commands/BuildCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public Task<bool> ExecuteAsync()
9595

9696
Console.WriteLine($"Build ASP.NET Core App for {platformInfo.NetCorePublishRid} under {configuration}-Configuration...");
9797

98-
var resultCode = ProcessHelper.CmdExecute($"dotnet publish -r {platformInfo.NetCorePublishRid} -c {configuration} --output \"{tempBinPath}\"", Directory.GetCurrentDirectory());
98+
var resultCode = ProcessHelper.CmdExecute($"dotnet publish -r {platformInfo.NetCorePublishRid} -c {configuration} --output \"{tempBinPath}\" /p:PublishReadyToRun=true --no-self-contained", Directory.GetCurrentDirectory());
9999

100100
if (resultCode != 0)
101101
{

ElectronNET.CLI/Commands/StartElectronCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Task<bool> ExecuteAsync()
5959
var platformInfo = GetTargetPlatformInformation.Do(string.Empty, string.Empty);
6060

6161
string tempBinPath = Path.Combine(tempPath, "bin");
62-
var resultCode = ProcessHelper.CmdExecute($"dotnet publish -r {platformInfo.NetCorePublishRid} --output \"{tempBinPath}\"", aspCoreProjectPath);
62+
var resultCode = ProcessHelper.CmdExecute($"dotnet publish -r {platformInfo.NetCorePublishRid} --output \"{tempBinPath}\" /p:PublishReadyToRun=true --no-self-contained", aspCoreProjectPath);
6363

6464
if (resultCode != 0)
6565
{

0 commit comments

Comments
 (0)