Skip to content

Pass over a bundled viewer path that is not on this machine - #824

Merged
SimonCropp merged 1 commit into
mainfrom
fix-stale-viewer-root
Aug 22, 2026
Merged

Pass over a bundled viewer path that is not on this machine#824
SimonCropp merged 1 commit into
mainfrom
fix-stale-viewer-root

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

On .NET Framework the path to the bundled viewer is carried as assembly metadata,
and every assembly built against the package carries one - prebuilt dependencies
included, where it is the package path of the machine that built them. The scan
took the first non-empty value it met and stopped, so a Verify.dll from NuGet
arriving before the test assembly handed back a directory that does not exist here,
the RID probe missed, and inline snapshots fell back to staging with a viewer
sitting in the package all along.

A value naming a directory that is not here is now passed over and the scan
continues, and the entry assembly - the one the targets stamped for this build - is
asked before the rest.

Both frameworks pick their root through the same check, so where a root has to
exist is stated once.

On .NET Framework the path to the bundled viewer is carried as assembly metadata,
and every assembly built against the package carries one - prebuilt dependencies
included, where it is the package path of the machine that built them. The scan
took the first non-empty value it met and stopped, so a Verify.dll from NuGet
arriving before the test assembly handed back a directory that does not exist here,
the RID probe missed, and inline snapshots fell back to staging with a viewer
sitting in the package all along.

A value naming a directory that is not here is now passed over and the scan
continues, and the entry assembly - the one the targets stamped for this build - is
asked before the rest.

Both frameworks pick their root through the same check, so where a root has to
exist is stated once.
@SimonCropp
SimonCropp merged commit 6727b06 into main Aug 22, 2026
9 checks passed
@SimonCropp
SimonCropp deleted the fix-stale-viewer-root branch August 22, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant