FileHelper.cs 276 B

123456789
  1. using System.Runtime.CompilerServices;
  2. public static class FileHelper
  3. {
  4. public static string GetAbsolutePath(string relativePath, [CallerFilePath] string callerFilePath = "")
  5. {
  6. return Path.Combine(Path.GetDirectoryName(callerFilePath)!, relativePath);
  7. }
  8. }