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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -184,7 +184,6 @@ publish/
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
|
||||
@@ -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&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>
|
||||
Reference in New Issue
Block a user