XAML-Map-Control/MapControl/Shared/FilePath.cs
2024-05-20 23:24:34 +02:00

21 lines
498 B
C#

// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// Copyright © 2024 Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
using System.IO;
namespace MapControl
{
public static class FilePath
{
public static string GetFullPath(string path)
{
#if NET6_0_OR_GREATER
return Path.GetFullPath(path, System.AppDomain.CurrentDomain.BaseDirectory);
#else
return Path.GetFullPath(path);
#endif
}
}
}