Skip to content

[rel/18.4] Updating System.Collections.Immutable package reference to version 9.0.0#15407

Merged
nohwnd merged 1 commit intomicrosoft:rel/18.4from
MSLukeWest:rel/18.4
Feb 20, 2026
Merged

[rel/18.4] Updating System.Collections.Immutable package reference to version 9.0.0#15407
nohwnd merged 1 commit intomicrosoft:rel/18.4from
MSLukeWest:rel/18.4

Conversation

@MSLukeWest
Copy link
Copy Markdown
Contributor

Porting from #15392

Description

Starting in VS 18.4, VS and MSBuild now reference this newer version of System.Collections.Immutable. Now, when the UWP test host runtime provider tries to load MSBuild assemblies it will fail, because the test platform's copy of System.Collections.Immutable doesn't have methods that MSBuild uses:

Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to launch testhost with error: System.AggregateException: One or more errors occurred. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Build.Shared.XMakeElements' threw an exception. ---> System.MissingMethodException: Method not found: 'System.Collections.Frozen.FrozenSet`1<!!0> System.Collections.Frozen.FrozenSet.Create(System.Collections.Generic.IEqualityComparer`1<!!0>, System.ReadOnlySpan`1<!!0>)'.
   at Microsoft.Build.Shared.XMakeElements..cctor()

Related issue

Internal DevDiv bug 2692656

  • I have ensured that there is a previously discussed and approved issue.

…0.0 (microsoft#15392)

* Updating System.Collections.Immutable package reference to version 10.0.1

* trigger GitHub actions

* Updating binding redirect

* Moving down to version 9.0.0

* Fix versions and redirects

* Moving version back to 9.0.0

* Update system.collections.immutable

* Setting NU1510 warning as message

* Moving suppression to NoWarn

* Trigger build

---------

Co-authored-by: nohwnd <me@jakubjares.com>
@nohwnd nohwnd merged commit e291cfd into microsoft:rel/18.4 Feb 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants