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

Tests won't run - Could not load file or assembly Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions #15019

Closed
C-Wal opened this issue Feb 26, 2025 · 1 comment

Comments

@C-Wal
Copy link

C-Wal commented Feb 26, 2025

I have a .Net Framework 4.8 test project using mstest. I have installed MSTest.TestFramework 3.0.0 and MSTest.TestAdapter 3.0.0. I am using Visual Studio 2022. The tests will be run on a build server with VS 2017. When I try to run a test in my local visual studio it fails with this error:

[Error] An exception occurred while invoking executor 'executor://mstestadapter/v2': Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I would rather not introduce a whole ton of extra dependencies with a newer version of MSTest. I have version 3.0.0 working in a similar solution and same environments. Can someone point me to what this error is being caused by?

@C-Wal
Copy link
Author

C-Wal commented Feb 26, 2025

For anyone else who ever has this issue I fixed i by installing Version 3.0.1 of MSTest. Reinstalling 3.0.0 didn't help for some reason but the small update did.

@C-Wal C-Wal closed this as completed Feb 26, 2025
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

No branches or pull requests

1 participant