You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add new PDictionary.TryOpenFile overloads that returns the error in case of failure. - #198
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The new three-argument TryOpenFile overload makes previously valid calls using inferred output variables or discards ambiguous, causing compilation failures and breaking source compatibility.
… overloads.
Calls such as 'TryOpenFile (path, out var dict, out var isBinary)' or
'TryOpenFile (path, out var dict, out _)' would otherwise be ambiguous
between the 'out bool' and 'out Exception?' overloads. Prefer the existing
'out bool' overload so source compatibility is preserved.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The new three-argument overload breaks source compatibility for consumers using C# 12 or earlier by making previously valid calls ambiguous.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Add tests for exception and binary-format overload outputs
Xamarin.MacDev/PListObject.cs:826
The existing NUnit tests in tests/PListObjectTests.cs call only the legacy overloads, leaving the new exception outputs untested. Add coverage for both new overloads asserting a null exception on success and a non-null exception with a null dictionary for missing files, malformed content, and non-dictionary roots; also check isBinary for XML and binary inputs through the four-argument overload.
Update Xamarin.MacDev to include the fix from dotnet/macios-devtools#203. The parser now reads complete `<true></true>` and `<false></false>` elements, keeping all following entries when converting plist resources to binary.
The dependency update also includes:
* dotnet/macios-devtools#198: add plist-loading overloads that return errors.
* dotnet/macios-devtools#200: use LF line endings in XML plist headers.
* dotnet/macios-devtools#201: update CI.
* dotnet/macios-devtools#202: check all profiles in both provisioning-profile folders when selecting one.
Add a regression test that converts plists with both boolean values to binary and checks that no entries are lost.
Fixes#27414
🤖 Pull request created by Copilot
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rokvin@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.