Skip to content

Fix "Could not load file or assembly 'Microsoft.Testing.Platform'" exception#4537

Merged
Evangelink merged 1 commit into
microsoft:rel/3.7from
Evangelink:fix-deps
Jan 7, 2025
Merged

Fix "Could not load file or assembly 'Microsoft.Testing.Platform'" exception#4537
Evangelink merged 1 commit into
microsoft:rel/3.7from
Evangelink:fix-deps

Conversation

@Evangelink

Copy link
Copy Markdown
Member

During the investigation, I realized that VSTest custom assembly resolver, enabled only when AppDomains are enabled and only for netfx, includes only VS folders and MSTest.TestAdapter. On 3.7, we started to depend upon some types from MTP leading to the dll being required but not loaded in this mode (the deps is part of a different NuGet).

As part of the analysis, I have also noticed that we are required to keep the framework under the adapter folder for the exact same reason.

I have restored the framework, only for netfx, that will be resolved only when under the customer resolver for netfx in VSTest. For MTP, I have decided not to copy the dll but instead to have wrapper types so we don't "pollute" the engine with types specific to a given platform.

Fixes #4426

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