Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue cannot load Microsoft.TestPlatform.CoreUtilities #1502

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

Evangelink
Copy link
Member

When setuping DeploymentEnabled, MSTest fails with An exception occurred while invoking executor 'executor://mstestadapter/v2': Could not load file or assembly 'Microsoft.TestPlatform.CoreUtilities, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.. After investigation, it seems related to a chage introduced in 2.2.7 where some logs were added, adding a dependency to this dll which cannot be resolved by the custom assembly resolver.

The special appdomain and resolver are meant to isolate and detect dll coming from the user bin folder to enable automatic copy of these dlls so we cannot easily fix the resolver as it could lead to conflicts or missing dlls copied. Simplest solution is to remove the log steps for this class.

Fixes #1493

When setuping DeploymentEnabled, MSTest fails with `An exception occurred while invoking executor 'executor://mstestadapter/v2': Could not load file or assembly 'Microsoft.TestPlatform.CoreUtilities, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.`. After investigation, it seems related to a chage introduced in 2.2.7 where some logs were added, adding a dependency to this dll which cannot be resolved by the custom assembly resolver.

The special appdomain and resolver are meant to isolate and detect dll coming from the user bin folder to enable automatic copy of these dlls so we cannot easily fix the resolver as it could lead to conflicts or missing dlls copied. Simplest solution is to remove the log steps for this class.
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.

MSTest 3.0.1 is broken when using deployment items
1 participant