Skip to content
Discussion options

You must be logged in to vote

I tried using the following target so that the XML documentation files are included during both build and publish:

<Target Name="GetFrameworkXmlDocumentation"
        BeforeTargets="AssignTargetPaths;Publish">

  <ItemGroup>
    <Content Include="@(Reference->'%(RootDir)%(Directory)%(Filename).xml')"
             Condition="Exists('%(RootDir)%(Directory)%(Filename).xml')">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
    </Content>
  </ItemGroup>

</Target>

Would this be the recommended approach for including additional generated static assets, or is there a better SDK-supported mechanism?

Replies: 14 comments 15 replies

Comment options

You must be logged in to vote
2 replies
@wherewhere
Comment options

@vigneshwaran1702
Comment options

Comment options

You must be logged in to vote
3 replies
@wherewhere
Comment options

@wherewhere
Comment options

@wherewhere
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wherewhere
Comment options

@vigneshwaran1702
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@wherewhere
Comment options

@vigneshwaran1702
Comment options

@vigneshwaran1702
Comment options

@wherewhere
Comment options

@vigneshwaran1702
Comment options

Answer selected by wherewhere
Comment options

You must be logged in to vote
2 replies
@vigneshwaran1702
Comment options

@wherewhere
Comment options

Comment options

You must be logged in to vote
0 replies
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