Skip to content

Don't change part URIs on cloning (or SaveAs) #1234

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

Merged

Conversation

twsouthwick
Copy link
Member

This replaces direct calls to PartUriHelper with an indirection via IPartUriFeature. When cloning, this feature will be replaced so that it doesn't try to get a different URI.

Fixes #1197

This replaces direct calls to PartUriHelper with an indirection via IPartUriFeature. When cloning, this feature will be replaced so that it doesn't try to get a different URI.
@twsouthwick
Copy link
Member Author

/cc @adamshakhabov @hunyu

hunyu
hunyu previously approved these changes Nov 18, 2022
Copy link
Collaborator

@hunyu hunyu left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Collaborator

@hunyu hunyu left a comment

Choose a reason for hiding this comment

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

Go for it

@twsouthwick twsouthwick merged commit 6d9a18b into dotnet:main Nov 19, 2022
@twsouthwick twsouthwick deleted the tasou/dont-enforce-part-counter-on-clone branch December 9, 2022 18:38
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.

OpenXmlPackage.SaveAs() corrupts file names
2 participants