-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Regression in the XmlBaseWriter.cs #74752
Comments
Tagging subscribers to this area: @dotnet/area-system-xml Issue DetailsDescriptionIn this optimization change (XmlBaseWriter.cs), there is a mistake which changes the logic in the Reproduction StepsUse Expected behaviorShouldn't throw an exception Actual behaviorthrows an exception:
Regression?yes Known Workaroundsno ConfigurationNo response Other information
|
Thanks for the report! I'll send a PR fixing this (and adding regression tests) within a few hours. |
Double-checked the original PR to look for additional errors. Buggy lines: |
Description
In this optimization change (XmlBaseWriter.cs), there is a mistake which changes the logic in the
XmlBaseWriter.cs
. Previously, it checked for the existence of-
at the end of a text, but now it is checked at the beginning of the text.Reproduction Steps
Use
.NET 7 preview 1
and run this command for any F# project:dotnet msbuild /t:build /pp /p:TargetFramework=net7.0 MyFsharpProject.fsharp
It fails to write for example this element (which exists there for about 5 years)
Expected behavior
Shouldn't throw an exception
Actual behavior
throws an exception:
Regression?
yes
Known Workarounds
no
Configuration
No response
Other information
FYI @GrabYourPitchforks
The text was updated successfully, but these errors were encountered: