Switch on nullable references for Tgstation.Server.Host.Common

This commit is contained in:
Jordan Dominion
2024-07-16 21:44:44 -04:00
parent b66a6da538
commit e3fa319a46
2 changed files with 4 additions and 0 deletions
@@ -21,6 +21,9 @@ namespace Tgstation.Server.Host.Common
public static IEnumerable<string> GetPotentialDotnetPaths(bool isWindows)
{
var enviromentPath = Environment.GetEnvironmentVariable("PATH");
if (enviromentPath == null)
return Enumerable.Empty<string>();
var paths = enviromentPath.Split(';');
var exeName = "dotnet";
@@ -4,6 +4,7 @@
<PropertyGroup>
<TargetFrameworks>$(TgsFrameworkVersion);net2.0</TargetFrameworks>
<Version>$(TgsCoreVersion)</Version>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>