|
1 | 1 | [](https://github.com/smdn/Smdn.Reflection.ReverseGenerating/blob/main/LICENSE.txt) |
2 | 2 |
|
3 | | -# `GenerateApiList` MSBuild task |
| 3 | +# Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks |
4 | 4 | [](https://www.nuget.org/packages/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/) |
5 | 5 |
|
6 | | -# `list-api` |
| 6 | +This package provides `GenerateApiList` MSBuild task. |
| 7 | + |
| 8 | +## Usage |
| 9 | +```xml |
| 10 | + <ItemGroup> |
| 11 | + <!-- Add package reference of Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks. --> |
| 12 | + <PackageReference |
| 13 | + Include="Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks" |
| 14 | + Version="1.0.3" |
| 15 | + PrivateAssets="all" |
| 16 | + IncludeAssets="build" |
| 17 | + /> |
| 18 | + </ItemGroup> |
| 19 | + |
| 20 | + <ItemGroup> |
| 21 | + <!-- Specify target assemblies to generate API list. --> |
| 22 | + <GenerateApiListTargetAssemblies Include="..." /> |
| 23 | + </ItemGroup> |
| 24 | + |
| 25 | + <PropertyGroup> |
| 26 | + <!-- (Optional) If you want to import 'Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.targets' even if the build target is `pack`. --> |
| 27 | + <ExcludeRestorePackageImports>false</ExcludeRestorePackageImports> |
| 28 | + </PropertyGroup> |
| 29 | + |
| 30 | + <Target Name="GenerateApiListFromAssemblies" AfterTargets="Pack"> |
| 31 | + <!-- Call `GenerateApiList` task --> |
| 32 | + <GenerateApiList Assemblies="@(GenerateApiListTargetAssemblies)"> |
| 33 | + <Output TaskParameter="GeneratedFiles" ItemName="GeneratedApiListFiles" /> |
| 34 | + </GenerateApiList> |
| 35 | + |
| 36 | + <Message Text="generated API list: @(GeneratedApiListFiles)" Importance="high" /> |
| 37 | + </Target> |
| 38 | +``` |
| 39 | + |
| 40 | +# Smdn.Reflection.ReverseGenerating.ListApi |
7 | 41 | [](https://www.nuget.org/packages/Smdn.Reflection.ReverseGenerating.ListApi/) |
8 | 42 |
|
| 43 | +This package provides `list-api` command line tool. |
| 44 | + |
| 45 | +This tool does not provide any code-formatting options. |
| 46 | + |
9 | 47 | # Smdn.Reflection.ReverseGenerating |
10 | 48 | [](https://www.nuget.org/packages/Smdn.Reflection.ReverseGenerating/) |
0 commit comments