Skip to content

Commit

Permalink
Merge pull request winsw#511 from NextTurn/workingdir
Browse files Browse the repository at this point in the history
Fix default working directory on .NET Core
  • Loading branch information
oleg-nenashev authored Apr 17, 2020
2 parents 02d72d0 + 55b8afe commit f2c1712
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Core/WinSWCore/Configuration/DefaultSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Xml;
using WMI;

Expand Down Expand Up @@ -33,7 +32,7 @@ public sealed class DefaultWinSWSettings : IWinSWConfiguration
public string? Startarguments => null;
public string? StopExecutable => null;
public string? Stoparguments => null;
public string WorkingDirectory => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;
public string WorkingDirectory => Path.GetDirectoryName(ExecutablePath)!;
public ProcessPriorityClass Priority => ProcessPriorityClass.Normal;
public TimeSpan StopTimeout => TimeSpan.FromSeconds(15);
public bool StopParentProcessFirst => false;
Expand Down

0 comments on commit f2c1712

Please sign in to comment.