fix: Fixed IcdEnvironment.Framework for .net framework

This commit is contained in:
Chris Cameron
2021-08-30 17:23:34 -04:00
parent 29013a2bf5
commit 74ff651798
4 changed files with 7 additions and 4 deletions

View File

@@ -109,8 +109,8 @@ namespace ICD.Common.Utils
static IcdEnvironment()
{
s_Framework = eFramework.Standard;
#if NETFRAMEWORK
s_Framework = eFramework.Framework;
s_CrestronSeries = eCrestronSeries.FourSeries;
if (CrestronEnvironment.RuntimeEnvironment == eRuntimeEnvironment.SIMPL)
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Simpl;
@@ -119,6 +119,7 @@ namespace ICD.Common.Utils
else
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Server;
#else
s_Framework = eFramework.Standard;
s_CrestronSeries = eCrestronSeries.Na;
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Na;
#endif

View File

@@ -12,6 +12,7 @@ namespace ICD.Common.Utils
public enum eFramework
{
Crestron,
Framework,
Standard
}

View File

@@ -175,7 +175,7 @@ namespace ICD.Common.Utils
{
get
{
if (IcdEnvironment.Framework == IcdEnvironment.eFramework.Crestron)
if (IcdEnvironment.Framework != IcdEnvironment.eFramework.Standard)
{
// 3-series
if (IcdEnvironment.CrestronSeries == IcdEnvironment.eCrestronSeries.ThreeSeries)
@@ -190,9 +190,9 @@ namespace ICD.Common.Utils
}
#if LINUX
return Join(RootPath, "var", "www", "html");
return Join(RootPath, "var", "www", "html");
#else
return "C:\\INetPub";
return "C:\\INetPub";
#endif
}
}

View File

@@ -41,6 +41,7 @@ namespace ICD.Common.Utils
throw new ArgumentOutOfRangeException();
}
break;
case IcdEnvironment.eFramework.Framework:
case IcdEnvironment.eFramework.Standard:
name += ' ';
break;