Fixing executable directory in net standard

This commit is contained in:
Chris Cameron
2017-10-09 16:15:04 -04:00
parent 8331763fe2
commit 218107b371

View File

@@ -3,6 +3,7 @@
using Crestron.SimplSharp.CrestronIO;
#else
using System.IO;
using Microsoft.DotNet.PlatformAbstractions;
#endif
namespace ICD.Common.Utils.IO
@@ -14,6 +15,7 @@ namespace ICD.Common.Utils.IO
#if SIMPLSHARP
return Directory.GetApplicationDirectory();
#else
return ApplicationEnvironment.ApplicationBasePath;
return Directory.GetCurrentDirectory();
#endif
}