Repository navigation
macOS build: allow the Info.plist DTD in XmlPeek and XmlPoke on MSBuild 18.11+ - #1811
Merged
Merged
Conversation
MSBuild 18.11 prohibits DTDs in XmlPeek and XmlPoke by default, failing the macOS release build with MSB3733 on SDK 11. Co-Authored-By: Lykos (Opus 5.5) <noreply@lykos.ai>
ionite34
approved these changes
Nov 24, 2026
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
StabilityMatrix.Avalonia.csproj: the macOSEditInfoPlisttarget'sXmlPeekandXmlPokeallow the DTD inInfo.plistagain.The v2.17.0 release's macOS job (45309536969) failed after #1810 with:
global.jsonpins9.0.0withrollForward: latestMajorandallowPrerelease: true, so the build uses the newest SDK on the runner. Themacos-15image has .NET 11, whose MSBuild (18.12) prohibits DTDs inXmlPeekandXmlPokeby default (change wave 18.11).Info.pliststarts with Apple's<!DOCTYPE plist …>.XmlPeekgetsProhibitDtd="false"; the parameter exists since MSBuild 15.XmlPokeonly hasProhibitDtdfrom 18.11, and MSBuild 18.9 fails withMSB4064when it's set. SoXmlPokeis split into two by$(MSBuildVersion): the existing one below 18.11, one withProhibitDtd="false"from 18.11.ProhibitDtd="false"meansDtdProcessing.Ignore, notParse: the DTD is skipped, nothing is fetched. That was the default before 18.11, so the output plist is what 2.16.5 produced (the poke drops theDOCTYPEline on both versions, as before).Alternatives considered
MSBUILDDISABLEFEATURESFROMVERSION=18.11inrelease.yml: reverts every 18.11 change for the build, and leaves local macOS builds on SDK 11 broken.global.jsonrollForward: latestFeature: keeps builds on SDK 9, but changes which SDK every developer and CI job uses; a bigger decision than a release-night fix.Verification
A scratch MSBuild project running these exact tasks on an
Info.plistwith Apple's DOCTYPE:MSB3733, as in the release runXmlPokedoesn't triggerMSB4064CSharpier 1.4.1
checkis clean on the file. Not verified end-to-end until the release workflow runs on it.🐺 Generated with Lykos Code (Opus 5.5)