From 361d300896b9077524dccd628c9da088ec9616eb Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Mon, 17 Jul 2023 13:18:22 -0400 Subject: [PATCH] Fix service dependency on the Windows framework --- src/Tgstation.Server.Host.Service/Program.cs | 2 ++ src/Tgstation.Server.Host.Service/ServerService.cs | 2 ++ .../Tgstation.Server.Host.Service.csproj | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host.Service/Program.cs b/src/Tgstation.Server.Host.Service/Program.cs index 23a9e45c23..6073742252 100644 --- a/src/Tgstation.Server.Host.Service/Program.cs +++ b/src/Tgstation.Server.Host.Service/Program.cs @@ -3,6 +3,7 @@ using System.Collections.Specialized; using System.Configuration.Install; using System.IO; using System.Reflection; +using System.Runtime.Versioning; using System.ServiceProcess; using System.Threading; using System.Threading.Tasks; @@ -20,6 +21,7 @@ namespace Tgstation.Server.Host.Service /// /// Contains the entrypoint for the application. /// + [SupportedOSPlatform("windows")] sealed class Program { /// diff --git a/src/Tgstation.Server.Host.Service/ServerService.cs b/src/Tgstation.Server.Host.Service/ServerService.cs index 69f707194b..9a3438837c 100644 --- a/src/Tgstation.Server.Host.Service/ServerService.cs +++ b/src/Tgstation.Server.Host.Service/ServerService.cs @@ -4,6 +4,7 @@ using System.Diagnostics; using System.IO; using System.IO.Pipes; using System.Linq; +using System.Runtime.Versioning; using System.ServiceProcess; using System.Text; using System.Threading; @@ -21,6 +22,7 @@ namespace Tgstation.Server.Host.Service /// /// Represents a as a . /// + [SupportedOSPlatform("windows")] sealed class ServerService : ServiceBase, ISignalChecker { /// diff --git a/src/Tgstation.Server.Host.Service/Tgstation.Server.Host.Service.csproj b/src/Tgstation.Server.Host.Service/Tgstation.Server.Host.Service.csproj index 48eb72358e..0186298b28 100644 --- a/src/Tgstation.Server.Host.Service/Tgstation.Server.Host.Service.csproj +++ b/src/Tgstation.Server.Host.Service/Tgstation.Server.Host.Service.csproj @@ -3,7 +3,9 @@ WinExe - $(TgsFrameworkVersion)-windows + win-x86;win-x64 + + $(TgsFrameworkVersion) $(TgsCoreVersion) false