diff --git a/src/Agent.Service/Windows/AgentService.cs b/src/Agent.Service/Windows/AgentService.cs index 82c4a01946..f6c1f5ff28 100644 --- a/src/Agent.Service/Windows/AgentService.cs +++ b/src/Agent.Service/Windows/AgentService.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System; -using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.IO; @@ -352,6 +351,6 @@ private enum AgentUpdateResult private static extern bool SetConsoleCtrlHandler(ConsoleCtrlDelegate HandlerRoutine, bool Add); // Delegate type to be used as the Handler Routine for SetConsoleCtrlHandler - delegate Boolean ConsoleCtrlDelegate(uint CtrlType); + private delegate bool ConsoleCtrlDelegate(uint CtrlType); } } diff --git a/src/Agent.Service/Windows/AgentService.csproj b/src/Agent.Service/Windows/AgentService.csproj index a020a26460..648c4d88df 100644 --- a/src/Agent.Service/Windows/AgentService.csproj +++ b/src/Agent.Service/Windows/AgentService.csproj @@ -1,6 +1,4 @@ - - - + Debug AnyCPU @@ -12,7 +10,9 @@ true FinalPublicKey.snk true - v4.7.1 + net6.0 + v6.0.28 + $(PackageRuntime) 512 true @@ -39,60 +39,30 @@ 4 - - - - - - - - - - - - + Component - + AgentService.cs - - - + True True Resource.resx - - - - - - - - - - - - - - + ResXFileCodeGenerator Resource.Designer.cs - - - - - - - + + +