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

Running without test.sdk is broken #4875

Closed
nohwnd opened this issue Feb 2, 2024 · 1 comment · Fixed by #5136
Closed

Running without test.sdk is broken #4875

nohwnd opened this issue Feb 2, 2024 · 1 comment · Fixed by #5136
Assignees

Comments

@nohwnd
Copy link
Member

nohwnd commented Feb 2, 2024

Running .net test projects without test.sdk package referenced fails with:
Testhost process for source(s) 'S:\t\mstest101\bin\Debug\net9.0\mstest101.dll' exited with error: The specified runtimeconfig.json [C:\Program Files\dotnet\sdk\9.0.100-preview.1.24101.2\testhost-9.0.runtimeconfig.json] does not exist
. Please check the diagnostic logs for more information.

or with

Testhost process for source(s) 'S:\t\mstest101\bin\Debug\net8.0\mstest101.dll' exited with error: Error:
An assembly specified in the application dependencies manifest (mstest101.deps.json) was not found:
package: 'MSTest.TestFramework', version: '3.1.1'
path: 'lib/net6.0/Microsoft.VisualStudio.TestPlatform.TestFramework.dll'
. Please check the diagnostic logs for more information.

Test Run Aborted.

dotnet 8.0.100 up to newest

@nohwnd
Copy link
Member Author

nohwnd commented Jul 8, 2024

This won't fix the problem when you are running wit additional .net dependencies, but allows c++ test running under .net host (the first case).

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 a pull request may close this issue.

1 participant