Add MSBuild targets to projects for XML doc generation
Co-authored-by: omegaleo <5655201+omegaleo@users.noreply.github.com>
This commit is contained in:
@@ -38,4 +38,20 @@
|
|||||||
<ProjectReference Include="..\OmegaLeo.HelperLib.Shared\OmegaLeo.HelperLib.Shared.csproj" />
|
<ProjectReference Include="..\OmegaLeo.HelperLib.Shared\OmegaLeo.HelperLib.Shared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Post-build target to generate XML documentation from DocumentationAttribute -->
|
||||||
|
<Target Name="GenerateXmlDocFromAttributes" AfterTargets="Build">
|
||||||
|
<PropertyGroup>
|
||||||
|
<XmlDocGenExe>$(MSBuildThisFileDirectory)../OmegaLeo.HelperLib.XmlDocGenerator/bin/$(Configuration)/net8.0/OmegaLeo.HelperLib.XmlDocGenerator.dll</XmlDocGenExe>
|
||||||
|
<TargetAssembly>$(TargetDir)$(TargetFileName)</TargetAssembly>
|
||||||
|
<TargetXmlDoc>$(TargetDir)$(TargetName).xml</TargetXmlDoc>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Message Text="[DocumentationAttribute] Augmenting XML documentation for $(TargetName) from DocumentationAttribute" Importance="high" Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')" />
|
||||||
|
|
||||||
|
<Exec Command="dotnet "$(XmlDocGenExe)" "$(TargetAssembly)" "$(TargetXmlDoc)""
|
||||||
|
Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
ContinueOnError="true" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -36,4 +36,20 @@
|
|||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Post-build target to generate XML documentation from DocumentationAttribute -->
|
||||||
|
<Target Name="GenerateXmlDocFromAttributes" AfterTargets="Build">
|
||||||
|
<PropertyGroup>
|
||||||
|
<XmlDocGenExe>$(MSBuildThisFileDirectory)../OmegaLeo.HelperLib.XmlDocGenerator/bin/$(Configuration)/net8.0/OmegaLeo.HelperLib.XmlDocGenerator.dll</XmlDocGenExe>
|
||||||
|
<TargetAssembly>$(TargetDir)$(TargetFileName)</TargetAssembly>
|
||||||
|
<TargetXmlDoc>$(TargetDir)$(TargetName).xml</TargetXmlDoc>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Message Text="[DocumentationAttribute] Augmenting XML documentation for $(TargetName) from DocumentationAttribute" Importance="high" Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')" />
|
||||||
|
|
||||||
|
<Exec Command="dotnet "$(XmlDocGenExe)" "$(TargetAssembly)" "$(TargetXmlDoc)""
|
||||||
|
Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
ContinueOnError="true" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -31,4 +31,20 @@
|
|||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Post-build target to generate XML documentation from DocumentationAttribute -->
|
||||||
|
<Target Name="GenerateXmlDocFromAttributes" AfterTargets="Build">
|
||||||
|
<PropertyGroup>
|
||||||
|
<XmlDocGenExe>$(MSBuildThisFileDirectory)../OmegaLeo.HelperLib.XmlDocGenerator/bin/$(Configuration)/net8.0/OmegaLeo.HelperLib.XmlDocGenerator.dll</XmlDocGenExe>
|
||||||
|
<TargetAssembly>$(TargetDir)$(TargetFileName)</TargetAssembly>
|
||||||
|
<TargetXmlDoc>$(TargetDir)$(TargetName).xml</TargetXmlDoc>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Message Text="[DocumentationAttribute] Augmenting XML documentation for $(TargetName) from DocumentationAttribute" Importance="high" Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')" />
|
||||||
|
|
||||||
|
<Exec Command="dotnet "$(XmlDocGenExe)" "$(TargetAssembly)" "$(TargetXmlDoc)""
|
||||||
|
Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
ContinueOnError="true" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -30,4 +30,20 @@
|
|||||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Post-build target to generate XML documentation from DocumentationAttribute -->
|
||||||
|
<Target Name="GenerateXmlDocFromAttributes" AfterTargets="Build">
|
||||||
|
<PropertyGroup>
|
||||||
|
<XmlDocGenExe>$(MSBuildThisFileDirectory)../OmegaLeo.HelperLib.XmlDocGenerator/bin/$(Configuration)/net8.0/OmegaLeo.HelperLib.XmlDocGenerator.dll</XmlDocGenExe>
|
||||||
|
<TargetAssembly>$(TargetDir)$(TargetFileName)</TargetAssembly>
|
||||||
|
<TargetXmlDoc>$(TargetDir)$(TargetName).xml</TargetXmlDoc>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Message Text="[DocumentationAttribute] Augmenting XML documentation for $(TargetName) from DocumentationAttribute" Importance="high" Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')" />
|
||||||
|
|
||||||
|
<Exec Command="dotnet "$(XmlDocGenExe)" "$(TargetAssembly)" "$(TargetXmlDoc)""
|
||||||
|
Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
ContinueOnError="true" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -33,4 +33,22 @@
|
|||||||
<ProjectReference Include="..\OmegaLeo.HelperLib.Shared\OmegaLeo.HelperLib.Shared.csproj" />
|
<ProjectReference Include="..\OmegaLeo.HelperLib.Shared\OmegaLeo.HelperLib.Shared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Post-build target to generate XML documentation from DocumentationAttribute -->
|
||||||
|
<Target Name="GenerateXmlDocFromAttributes" AfterTargets="Build">
|
||||||
|
<PropertyGroup>
|
||||||
|
<XmlDocGenExe>$(MSBuildThisFileDirectory)../OmegaLeo.HelperLib.XmlDocGenerator/bin/$(Configuration)/net8.0/OmegaLeo.HelperLib.XmlDocGenerator.dll</XmlDocGenExe>
|
||||||
|
<TargetAssembly>$(TargetDir)$(TargetFileName)</TargetAssembly>
|
||||||
|
<TargetXmlDoc>$(TargetDir)$(TargetName).xml</TargetXmlDoc>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Message Text="[DocumentationAttribute] Augmenting XML documentation for $(TargetName) from DocumentationAttribute" Importance="high" Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')" />
|
||||||
|
<Message Text="[DocumentationAttribute] XmlDocGen tool not found at: $(XmlDocGenExe)" Importance="high" Condition="!Exists('$(XmlDocGenExe)')" />
|
||||||
|
<Message Text="[DocumentationAttribute] Target assembly not found at: $(TargetAssembly)" Importance="high" Condition="!Exists('$(TargetAssembly)')" />
|
||||||
|
|
||||||
|
<Exec Command="dotnet "$(XmlDocGenExe)" "$(TargetAssembly)" "$(TargetXmlDoc)""
|
||||||
|
Condition="Exists('$(XmlDocGenExe)') And Exists('$(TargetAssembly)')"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
ContinueOnError="true" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user