Fix Nerdbank.MessagePack security vulnerabilities; fix Linux build and test failures#204
Merged
Merged
Conversation
- Add EnableWindowsTargeting=true to WPF and Console E2E host projects so they build on Linux without WPF SDK installed - Fix PersistSettingsTests to use a custom controlled env var instead of %LocalAppData%, which doesn't expand on Linux, causing InputSettingsPath and ResolvedSettingsPath to be identical and conflicting Moq setups
Copilot created this pull request from a session on behalf of
jodavis
May 30, 2026 19:17
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Updates a vulnerable dependency and addresses Linux CI breakages by enabling Windows targeting for Windows-only test hosts and fixing a cross-platform path expansion issue in a unit test.
Changes:
- Bumps
Nerdbank.MessagePackto1.2.4to address reported security advisories. - Adds
<EnableWindowsTargeting>true</EnableWindowsTargeting>to Windows-TFM E2E host projects so they can be built on Linux. - Fixes
PersistSettingsTestson Linux by using a controlled environment variable and deferring expansion until afterClassInitialize.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/AdaptiveRemote.EndToEndTests.Host.Wpf/AdaptiveRemote.EndToEndTests.Host.Wpf.csproj | Enables Windows targeting to avoid Linux build failures for a Windows-TFM test host. |
| test/AdaptiveRemote.EndtoEndTests.Host.Console/AdaptiveRemote.EndToEndTests.Host.Console.csproj | Enables Windows targeting to avoid Linux build failures for a Windows-TFM test host. |
| test/AdaptiveRemote.App.Tests/Services/ProgrammaticSettings/PersistSettingsTests.cs | Makes settings-path expansion deterministic across OSes via a test-controlled env var. |
| Directory.Packages.props | Updates Nerdbank.MessagePack to a non-vulnerable version. |
Test Results401 tests ±0 401 ✅ ±0 2m 13s ⏱️ -32s Results for commit bfd4870. ± Comparison against base commit b877808. This pull request removes 3 and adds 2 tests. Note that renamed tests count towards both. |
jodavis
approved these changes
May 30, 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Nerdbank.MessagePack 1.1.62has two moderate security advisories (GHSA-qjvr-435c-5fjh, GHSA-92vj-hp7m-gwcj). Additionally,scripts/validatewas failing on Linux due to two pre-existing bugs uncovered when trying to confirm the fix.Package update
Directory.Packages.props:Nerdbank.MessagePack1.1.62 → 1.2.4Linux build fix
AdaptiveRemote.EndToEndTests.Host.Wpf.csproj,AdaptiveRemote.EndToEndTests.Host.Console.csproj: Added<EnableWindowsTargeting>true</EnableWindowsTargeting>. These Windows-TFM projects were failing with NETSDK1073 on Linux while the production WPF project already had this property.Linux test fix
PersistSettingsTests:%LocalAppData%doesn't expand on Linux, soInputSettingsPath == ResolvedSettingsPath, causing theTimes.NeverMoq setup to overwrite theTimes.Oncesetup for the same path. Replaced with a controlled env var (AR_TEST_SETTINGS_DIR) set/restored inClassInitialize/ClassCleanup, and changedResolvedSettingsPathfrom a static field to a static property so it evaluates afterClassInitializeruns.