mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: Fixed preprocessors in IcdDirectory
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
/// <returns></returns>
|
||||
public static string GetApplicationRootDirectory()
|
||||
{
|
||||
#if SIMPLSHARP
|
||||
#if !NETSTANDARD
|
||||
return Directory.GetApplicationRootDirectory();
|
||||
#else
|
||||
return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetPath());
|
||||
|
||||
Reference in New Issue
Block a user