Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy XmlDocuments to output directory #10579

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

KevinRansom
Copy link
Member

This changes the xmldoc comments file for FSharp.Core into a nuget contentFile. Following this change, build and publish will deploy the FSharp.Core.xml doc comment file to the output directory, without the build author having to do any extra work.

I wish I was smarter than I actually am, because this 2 minute job took over a day. Good lord the contentFiles semantics are confusing.

Note: I have left the original FSharp.Core.xml in the lib directory, because when the package is referenced directly, which is a very common coreclr scenario it exists alongside the .dll. Also, any existing builds that included targets to copy the file to the output directory will still work. Although developers can ideally, remove those targets.

@@ -6,12 +6,16 @@
<dependencies>
<group targetFramework=".NETStandard2.0" />
</dependencies>
<contentFiles> <!-- Deploy doc comments as Content -->
<files include="**/*" buildAction="None" copyToOutput="true" flatten="true" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this pick up anything other than the XML file? How do we know? I'm concerned that this will pull in a bunch of garbage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brettfo, it only picks up contentFiles. I think I can specify the exact filename though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There it's 'splicit now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants