Skip to content

Conversation

@KevinRansom
Copy link
Contributor

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.

<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
Contributor 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
Contributor 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