XAML-Map-Control/MapControl/Shared/FilePath.cs

22 lines
491 B
C#
Raw Normal View History

2022-12-06 18:07:38 +01:00
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// <20> 2022 Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
using System;
using System.IO;
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
2022-12-06 18:07:38 +01:00
return Path.GetFullPath(path, AppDomain.CurrentDomain.BaseDirectory);
#else
return Path.GetFullPath(path);
#endif
}
}
}