From 218107b371dae89737caca076e1cd6f8744d8db6 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Mon, 9 Oct 2017 16:15:04 -0400 Subject: [PATCH] Fixing executable directory in net standard --- ICD.Common.Utils/IO/IcdDirectory.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ICD.Common.Utils/IO/IcdDirectory.cs b/ICD.Common.Utils/IO/IcdDirectory.cs index 64add31..ce157d9 100644 --- a/ICD.Common.Utils/IO/IcdDirectory.cs +++ b/ICD.Common.Utils/IO/IcdDirectory.cs @@ -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 }