From fffc8e4a6024d29f584eabd11155e203df48ec1e Mon Sep 17 00:00:00 2001 From: Drew Tingen Date: Tue, 22 Jan 2019 09:50:32 -0800 Subject: [PATCH] fix: Fixed GetApplicationRootDirectory for NetStandard --- ICD.Common.Utils/IO/IcdDirectory.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/IO/IcdDirectory.cs b/ICD.Common.Utils/IO/IcdDirectory.cs index 4b087c5..025d56a 100644 --- a/ICD.Common.Utils/IO/IcdDirectory.cs +++ b/ICD.Common.Utils/IO/IcdDirectory.cs @@ -1,4 +1,5 @@ using System; +using ICD.Common.Utils.Extensions; #if SIMPLSHARP using Crestron.SimplSharp.CrestronIO; #else @@ -28,7 +29,7 @@ namespace ICD.Common.Utils.IO #if SIMPLSHARP return Directory.GetApplicationRootDirectory(); #else - return Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase); + return Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetPath()); #endif }