Restructure XmlDocGenerator as MSBuild SDK package for NuGet distribution
Co-authored-by: omegaleo <5655201+omegaleo@users.noreply.github.com>
This commit is contained in:
@@ -31,19 +31,7 @@
|
||||
</None>
|
||||
</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>
|
||||
<!-- Import local XML doc generation for development -->
|
||||
<Import Project="../XmlDocGeneratorLocal.props" Condition="Exists('../XmlDocGeneratorLocal.props')" />
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user