mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-14 13:07:28 +00:00
Fixing executable directory in net standard
This commit is contained in:
parent
8331763fe2
commit
218107b371
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue