2023-01-03 15:12:53 +01:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2024-02-03 21:01:53 +01:00
|
|
|
|
// Copyright © 2024 Clemens Fischer
|
2022-12-06 18:07:38 +01:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class FilePath
|
|
|
|
|
|
{
|
|
|
|
|
|
public static string GetFullPath(string path)
|
|
|
|
|
|
{
|
2022-12-06 18:11:38 +01:00
|
|
|
|
#if NET6_0_OR_GREATER
|
2024-05-27 11:05:22 +02:00
|
|
|
|
return System.IO.Path.GetFullPath(path, System.AppDomain.CurrentDomain.BaseDirectory);
|
2022-12-06 18:07:38 +01:00
|
|
|
|
#else
|
2024-05-27 11:05:22 +02:00
|
|
|
|
return System.IO.Path.GetFullPath(path);
|
2022-12-06 18:07:38 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|