diff --git a/src/Tgstation.Server.Host.Common/DotnetHelper.cs b/src/Tgstation.Server.Host.Common/DotnetHelper.cs index b5d80db784..5945eac25d 100644 --- a/src/Tgstation.Server.Host.Common/DotnetHelper.cs +++ b/src/Tgstation.Server.Host.Common/DotnetHelper.cs @@ -21,6 +21,9 @@ namespace Tgstation.Server.Host.Common public static IEnumerable GetPotentialDotnetPaths(bool isWindows) { var enviromentPath = Environment.GetEnvironmentVariable("PATH"); + if (enviromentPath == null) + return Enumerable.Empty(); + var paths = enviromentPath.Split(';'); var exeName = "dotnet"; diff --git a/src/Tgstation.Server.Host.Common/Tgstation.Server.Host.Common.csproj b/src/Tgstation.Server.Host.Common/Tgstation.Server.Host.Common.csproj index a45edbc7c4..484d476684 100644 --- a/src/Tgstation.Server.Host.Common/Tgstation.Server.Host.Common.csproj +++ b/src/Tgstation.Server.Host.Common/Tgstation.Server.Host.Common.csproj @@ -4,6 +4,7 @@ $(TgsFrameworkVersion);net2.0 $(TgsCoreVersion) + enable