Skip to content

Conversation

@hiihellox10
Copy link
Contributor

@hiihellox10 hiihellox10 commented Dec 7, 2020

The Directory.GetFiles method returned file names is not sort, this makes the order of the assembly elements of our generated XML files is inconsistent in different environments, so we need to sort it and update those expected XML files.

@anmeng10101
Copy link
Collaborator

anmeng10101 commented Dec 7, 2020

Hi @hiihellox10, let's update the commit message and pr description to help others understand why we need this code change. And also the test CI runs for processing https://github.com/dotnet/dotnet-api-docs of not introduce new diff.

Copy link
Member

@joelmartinez joelmartinez left a comment

Choose a reason for hiding this comment

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

This looks great!

@anmeng10101, I can just change the commit message when I do the squash commit :) And as for the changes on dotnet-api-docs, I think we can accept any changes that are just the result of a .dll re-ordering; this will make results much more consistent going forward so it's necessary.

Thanks @hiihellox10!

@joelmartinez joelmartinez merged commit 8b42e0d into mono:develop Dec 7, 2020
v-zazhou pushed a commit to v-zazhou/api-doc-tools that referenced this pull request Dec 14, 2020
This change brings a higher consistency across environments, as originally the .dlls were read in whatever order the operating system enumerated them in; this proved to be inconsistent over time, so this will reduce unexpected results going forward.
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.

3 participants