Skip to content

Does the Microsoft.Extensions.ApiDescription.Client support multi targets? #63002

Closed Answered by mikezw
mikezw asked this question in Q&A
Discussion options

You must be logged in to vote

My use is simple, so I copy some property and target in Microsoft.Extensions.ApiDescription.Client, and Multi targeting

<Project>
    <!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
    <!--Well-known metadata of the code generator item groups.This all copy from Mircosoft.Extensions.ApiDescription.Client -->
    <ItemGroup>
        <AvailableItemName Include="MyOpenApiReference" />
    </ItemGroup>

    <!--Well-known metadata of the code generator item groups.-->
    <ItemDefinitionGroup>
        <MyOpenApiReference>
            <!-- Name of the class to generate. Defaults to match filename in %(OutputPath). -->
            <ClassName />
  …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mikezw
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mikezw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants