-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
⌚ Not TriagedNot triagedNot triageddotnet-fundamentals/svcokr-freshnessOKR: Freshness of contentOKR: Freshness of contentokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Description
All of this part
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<!-- Create a folder inside program files -->
<Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)">
<!-- Create a folder within the parent folder given the name -->
<Directory Id="INSTALLFOLDER" Name="$(Name)" />
</Directory>
</Directory>
</Directory>
Can be replaced with
<StandardDirectory Id="ProgramFiles6432Folder">
<!-- Create a folder within the parent folder given the name -->
<Directory Id="INSTALLFOLDER" Name="$(Name)" />
</StandardDirectory>
and visual studio wont display the compiling error
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: e044209a-0802-07c0-7518-208967a3ef02
- Version Independent ID: 83c4d805-1394-90b7-6def-cf809c33ae22
- Content: Create a Windows Service installer - .NET
- Content Source: docs/core/extensions/windows-service-with-installer.md
- Product: dotnet-fundamentals
- GitHub Login: @IEvangelist
- Microsoft Alias: dapine
Metadata
Metadata
Assignees
Labels
⌚ Not TriagedNot triagedNot triageddotnet-fundamentals/svcokr-freshnessOKR: Freshness of contentOKR: Freshness of contentokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.