recommended: System.Environment.ProcessPath
This commit is contained in:
parent
fc25e73b1a
commit
fe2de6ecf7
2 changed files with 2 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ namespace AppScaffolding
|
|||
: value;
|
||||
|
||||
#region appsettings.json
|
||||
private static string APPSETTINGS_JSON { get; } = Path.Combine(Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName), "appsettings.json");
|
||||
private static string APPSETTINGS_JSON { get; } = Path.Combine(Path.GetDirectoryName(Environment.ProcessPath), "appsettings.json");
|
||||
|
||||
public static bool APPSETTINGS_Json_Exists => File.Exists(APPSETTINGS_JSON);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue