mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 04:35:00 +00:00
refactor: Removing preprocessors and adding better multi-platform support
This commit is contained in:
@@ -19,17 +19,18 @@ namespace ICD.Common.Utils.IO
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#if SIMPLSHARP
|
||||
/// <summary>
|
||||
/// This gets the application root directory for Crestron systems
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetApplicationRootDirectory()
|
||||
{
|
||||
#if SIMPLSHARP
|
||||
return Directory.GetApplicationRootDirectory();
|
||||
}
|
||||
#else
|
||||
return Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase);
|
||||
#endif
|
||||
}
|
||||
|
||||
public static bool Exists(string path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user