Skip to content

[ClickOnce] Fix for GB18030 character issues in ClickOnce publishing #9062

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

Closed
wants to merge 1 commit into from

Conversation

sujitnayak
Copy link
Contributor

@sujitnayak sujitnayak commented Jul 24, 2023

Fixes #
AB#1852036
AB#1852046

Context

Projects with GB18030 characters fail during ClickOnce publishing of .NET FX and VSTO Addin-in projects.

Changes Made

GB1830 characters in PUA block get escaped by XmlReader.Create(string, ...) because it treats the string argument as a URI. This can cause publishing failure b/c the paths become invalid. We now use StreamReader to load the file and pass that to XmlReader.Create.

Testing

Stepped through code to confirm the fixes made.
CTI team is validating the fixes.

Notes

@John-Hart John-Hart requested a review from ning51 July 24, 2023 19:08
@sujitnayak sujitnayak changed the title Fix for GB18030 character issues ClickOnce] Fix for GB18030 character issues in ClickOnce publishing Jul 24, 2023
@sujitnayak sujitnayak changed the title ClickOnce] Fix for GB18030 character issues in ClickOnce publishing [ClickOnce] Fix for GB18030 character issues in ClickOnce publishing Jul 24, 2023
@sujitnayak
Copy link
Contributor Author

Already fixed in msbuild:main.

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