mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Switch on nullable references for Tgstation.Server.Host.Common
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user