From 2700f5018a4f19574c2dddbd74a435369251e266 Mon Sep 17 00:00:00 2001 From: Drew Tingen Date: Wed, 30 Nov 2022 12:09:24 -0500 Subject: [PATCH] fix: Fixed preprocessors in IcdDirectory --- CHANGELOG.md | 1 + ICD.Common.Utils/IO/IcdDirectory.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d878dcc..67ac953 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - IcdEnvironment - Added CrestronDevicePlatform, removed from CrestronRuntimeEnvironment, to support SimplWindows on VC-4 - Fixed IcdEnvironment CrestronRuntimeEnvironment uses in IcdConsole, PathUtils, and ProgramUtils + - Fixed preprocessors in IcdDirectory ## [16.0.5] 2022-07-11 ### Changed diff --git a/ICD.Common.Utils/IO/IcdDirectory.cs b/ICD.Common.Utils/IO/IcdDirectory.cs index 3c22018..be4b40c 100644 --- a/ICD.Common.Utils/IO/IcdDirectory.cs +++ b/ICD.Common.Utils/IO/IcdDirectory.cs @@ -1,5 +1,5 @@ using System; -#if SIMPLSHARP +#if !NETSTANDARD using Crestron.SimplSharp.CrestronIO; #else using ICD.Common.Utils.Extensions; @@ -13,7 +13,7 @@ namespace ICD.Common.Utils.IO { public static string GetApplicationDirectory() { -#if SIMPLSHARP +#if !NETSTANDARD return Directory.GetApplicationDirectory(); #else string pathToDll = Assembly.GetExecutingAssembly().GetPath(); @@ -27,7 +27,7 @@ namespace ICD.Common.Utils.IO /// public static string GetApplicationRootDirectory() { -#if SIMPLSHARP +#if !NETSTANDARD return Directory.GetApplicationRootDirectory(); #else return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetPath());