mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Fixing executable directory in net standard
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
using Crestron.SimplSharp.CrestronIO;
|
using Crestron.SimplSharp.CrestronIO;
|
||||||
#else
|
#else
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Microsoft.DotNet.PlatformAbstractions;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace ICD.Common.Utils.IO
|
namespace ICD.Common.Utils.IO
|
||||||
@@ -14,6 +15,7 @@ namespace ICD.Common.Utils.IO
|
|||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
return Directory.GetApplicationDirectory();
|
return Directory.GetApplicationDirectory();
|
||||||
#else
|
#else
|
||||||
|
return ApplicationEnvironment.ApplicationBasePath;
|
||||||
return Directory.GetCurrentDirectory();
|
return Directory.GetCurrentDirectory();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user