From c346e553e89d0aa2588b4b26099819d8a3fe8f83 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 13 Mar 2021 13:29:59 +0530 Subject: [PATCH] windows service: added folder publish. refactoring done. --- .../DnsServerWindowsService.csproj | 36 ++++++++++++++++++ .../DnsServiceWorker.cs | 2 +- .../Program.cs | 2 +- .../PublishProfiles/FolderProfile.pubxml | 14 +++++++ .../logo2.ico | Bin DnsService/DnsService.csproj | 30 --------------- 6 files changed, 52 insertions(+), 32 deletions(-) create mode 100644 DnsServerWindowsService/DnsServerWindowsService.csproj rename {DnsService => DnsServerWindowsService}/DnsServiceWorker.cs (98%) rename {DnsService => DnsServerWindowsService}/Program.cs (99%) create mode 100644 DnsServerWindowsService/Properties/PublishProfiles/FolderProfile.pubxml rename {DnsService => DnsServerWindowsService}/logo2.ico (100%) delete mode 100644 DnsService/DnsService.csproj diff --git a/DnsServerWindowsService/DnsServerWindowsService.csproj b/DnsServerWindowsService/DnsServerWindowsService.csproj new file mode 100644 index 00000000..e9e3fed4 --- /dev/null +++ b/DnsServerWindowsService/DnsServerWindowsService.csproj @@ -0,0 +1,36 @@ + + + + net5.0 + false + true + true + DnsServerWindowsService + DnsService + logo2.ico + 6.0 + Shreyas Zare + Technitium + Technitium DNS Server + .NET 5 + https://technitium.com/dns/ + https://github.com/TechnitiumSoftware/DnsServer + DnsServerWindowsService + + + + + ..\..\TechnitiumLibrary\bin\TechnitiumLibrary.Net.Firewall.dll + + + + + + + + + + + + + \ No newline at end of file diff --git a/DnsService/DnsServiceWorker.cs b/DnsServerWindowsService/DnsServiceWorker.cs similarity index 98% rename from DnsService/DnsServiceWorker.cs rename to DnsServerWindowsService/DnsServiceWorker.cs index 989cf734..29a027da 100644 --- a/DnsService/DnsServiceWorker.cs +++ b/DnsServerWindowsService/DnsServiceWorker.cs @@ -23,7 +23,7 @@ using System; using System.Threading; using System.Threading.Tasks; -namespace DnsService +namespace DnsServerWindowsService { public class DnsServiceWorker : BackgroundService { diff --git a/DnsService/Program.cs b/DnsServerWindowsService/Program.cs similarity index 99% rename from DnsService/Program.cs rename to DnsServerWindowsService/Program.cs index 639546ae..0398d680 100644 --- a/DnsService/Program.cs +++ b/DnsServerWindowsService/Program.cs @@ -23,7 +23,7 @@ using System; using System.Reflection; using TechnitiumLibrary.Net.Firewall; -namespace DnsService +namespace DnsServerWindowsService { static class Program { diff --git a/DnsServerWindowsService/Properties/PublishProfiles/FolderProfile.pubxml b/DnsServerWindowsService/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 00000000..a073f992 --- /dev/null +++ b/DnsServerWindowsService/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,14 @@ + + + + + Release + Any CPU + ..\DnsServerWindowsSetup\publish + FileSystem + net5.0 + false + + \ No newline at end of file diff --git a/DnsService/logo2.ico b/DnsServerWindowsService/logo2.ico similarity index 100% rename from DnsService/logo2.ico rename to DnsServerWindowsService/logo2.ico diff --git a/DnsService/DnsService.csproj b/DnsService/DnsService.csproj deleted file mode 100644 index 10c6cb8a..00000000 --- a/DnsService/DnsService.csproj +++ /dev/null @@ -1,30 +0,0 @@ - - - - WinExe - net5.0-windows7.0 - true - - DnsService - DnsService - logo2.ico - 2.6.0.0 - - - - ..\..\TechnitiumLibrary\bin\TechnitiumLibrary.Net.Firewall.dll - - - - - {4494b79b-588c-41f2-95ad-0897123af154} - DnsServerCore - - - - - - - - - \ No newline at end of file