Skip to content

Commit

Permalink
Update configuration for building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Sep 30, 2024
1 parent 849138d commit 5662083
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions Sources/DesktopManager.PowerShell/DesktopManager.PowerShell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="all" />
</ItemGroup>

<!-- Make sure the output DLL's from library are included in the output -->
<PropertyGroup>
<!-- Make sure the output DLL's from library are included in the output -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
Expand All @@ -32,15 +32,24 @@
<Using Include="DesktopManager" />
</ItemGroup>

<PropertyGroup>
<!-- This is needed for XmlDoc2CmdletDoc to generate a PowerShell documentation file. -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<!-- This is needed for XmlDoc2CmdletDoc to generate a PowerShell documentation. DLL itself will be removed/hidden -->
<PackageReference Include="MatejKafka.XmlDoc2CmdletDoc" Version="0.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<PropertyGroup>
<!-- This is needed for XmlDoc2CmdletDoc to generate a PowerShell documentation. -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<Target Name="CopyDocumentationToPublishFolder" AfterTargets="GenerateDocumentationFile;Publish">
<!-- This is needed for XmlDoc2CmdletDoc to copy a PowerShell documentation file to Publish folder -->
<ItemGroup>
<DocFiles Include="$(OutputPath)$(AssemblyName).dll-Help.xml" />
</ItemGroup>
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(PublishDir)" />
</Target>
</Project>

0 comments on commit 5662083

Please sign in to comment.