Skip to content

publicKeyToken and culture attributes changing order when binding redirects are updated vs regenerated #91

@julealgon

Description

@julealgon

I noticed this by complete accident after performing a full refresh of my binding redirects as described here:

After performing that "cleanup" change and merging my code, the very next NuGet package update that I did resulted in the binding being updated, but the publicKeyToken and culture attributes had their places swapped.

Here is an example of the diff after upgrading the Microsoft.Identity.Client package and rebuilding my project:

Image

If I then go ahead and delete the section again, and let it regenerate from scratch, I get this diff:

Image

My assumption here is that this update is being performed by nuget.exe (unsure here), and that tool is enforcing this particular order (culture, then publicKeyToken), whereas this SDK is writing the entries using the inverse order (publicKeyToken then culture).

I'd like to propose that the logic in the SDK be updated to write the nodes using the same attribute order that nuget.exe uses so as to minimize diffs when making these updates.

My assumption is that this would be a trivial update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions