Update .gitignore and add WindowsService publish profile

Updated .gitignore to exclude `*.pubxml` and `*.publishproj` files, preventing sensitive information from being committed.

Added `WindowsServiceNet8.pubxml`, a new publish profile for deploying a Windows Service application. The profile specifies `FileSystem` as the publish method, targets `net8.0`, and includes configurations for output directory, runtime identifier, and environment settings.
This commit is contained in:
2026-11-17 11:28:11 +01:00
parent a1ffe67318
commit 7b0e3a1107
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
Windows Service publish profile — outputs files to a folder for sc.exe deployment.
Usage: dotnet publish /p:PublishProfile=WindowsServiceNet8 /p:Version=2.2.1-beta
-->
<Project>
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishDir>M:\App&amp;Service\0 DD - Funktionsmodule\MessagingService\PreRelease\WindowsService\net8\$(Version)\</PublishDir>
<DeleteExistingFiles>true</DeleteExistingFiles>
<ProjectGuid>5e0e17c0-ff5a-4246-bf87-1add85376a27</ProjectGuid>
<TargetFramework>net8.0</TargetFramework>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<EnvironmentName>Production</EnvironmentName>
<PublishSingleFile>false</PublishSingleFile>
</PropertyGroup>
</Project>