Skip to content

Commit

Permalink
Don't use AppDomain if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Aug 18, 2024
1 parent b2d4d58 commit 43d1da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Onova.Tests.Dummy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class Program
{
private static Version Version => Assembly.GetExecutingAssembly().GetName().Version!;

private static string AssemblyDirPath => AppDomain.CurrentDomain.BaseDirectory!;
private static string AssemblyDirPath => AppContext.BaseDirectory;

private static string LastRunFilePath =>
Path.Combine(AssemblyDirPath, $"lastrun-{Version}.txt");
Expand Down

0 comments on commit 43d1da9

Please sign in to comment.