File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2929
3030 <ItemGroup >
3131 <PackageReference Include =" Nerdbank.GitVersioning" Version =" 3.7.115" PrivateAssets =" All" />
32+ <PackageReference Include =" SAPTeam.CommonTK" Version =" 4.1.3" />
3233 <PackageReference Include =" Serilog" Version =" 4.2.0" />
3334 <PackageReference Include =" Serilog.Enrichers.Thread" Version =" 4.0.0" />
3435 <PackageReference Include =" Serilog.Extensions.Logging" Version =" 8.0.0" />
Original file line number Diff line number Diff line change 66using Serilog ;
77using Serilog . Extensions . Logging ;
88using SAPTeam . EasySign . CommandLine ;
9+ using SAPTeam . CommonTK ;
910
1011namespace SAPTeam . EasySign . Cli
1112{
1213 internal class Program
1314 {
14- public static string AppDirectory => AppDomain . CurrentDomain . BaseDirectory ;
15+ public static string AppDirectory => Context . GetApplicationDataDirectory ( "EasySign" ) ;
1516
1617 public static string ConfigPath => Path . Combine ( AppDirectory , "config.json" ) ;
1718
@@ -36,6 +37,11 @@ private static int Main(string[] args)
3637 Microsoft . Extensions . Logging . ILogger commandProviderLogger = new SerilogLoggerFactory ( Log . Logger . ForContext ( "Context" , "CommandProvider" ) )
3738 . CreateLogger ( "CommandProvider" ) ;
3839
40+ if ( ! Directory . Exists ( AppDirectory ) )
41+ {
42+ Directory . CreateDirectory ( AppDirectory ) ;
43+ }
44+
3945 CommandProviderConfiguration config ;
4046 if ( File . Exists ( ConfigPath ) )
4147 {
You can’t perform that action at this time.
0 commit comments