Skip to content

Conversation

@MarcoRossignoli
Copy link
Contributor

We have a fallback for the corner case scenario where for some reason the runtimeconfig is not close to the test dll as expected(file moved post processing for instance without the runtime config file).
We ship the fallback configuration directly inside the sdk, for 8.0 was missing failing the above scenario.

fixes microsoft/vscode#198748

cc: @pavelhorak @cvpoienaru @Evangelink

@luiz-soares
Copy link

luiz-soares commented Jan 24, 2024

hi, thanks for fixing that, are there any plans to release a new version of Microsoft.TestPlatform package with this?

@nohwnd
Copy link
Member

nohwnd commented Jan 25, 2024

@cvpoienaru please clarify here when this was or will be released.

@cvpoienaru
Copy link
Member

@nohwnd @luiz-soares the fix for this issue will be part of the first preview version of vstest v17.10.0 which will drop next week.

@cvpoienaru
Copy link
Member

cvpoienaru commented Jan 30, 2024

@nohwnd @luiz-soares TestPlatform v17.10.0-preview-24080-01 is now available !
Release notes
Microsoft.NET.Test.Sdk nuget
Microsoft.TestPlatform nuget

@robertmclaws
Copy link

This is still happening for me even with the latest TestPlatform installed. Runs fine in Visual Studio but fails at the command line both locally and in GitHub Actions.

@chucker
Copy link

chucker commented Apr 10, 2024

In case it helps anyone else: we suddenly ran into this issue. In our case, the culprit was an csproj authoring error.

I added an explicit package reference like so:

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0"/>

…and the error went away. I'm guessing without the line, the test runner falls back to a different, incorrect behavior.

@nohwnd
Copy link
Member

nohwnd commented Apr 12, 2024

for reference the same issue is also here: dotnet/sdk#38473 Any project that is a test project should install Microsoft.NET.Test.SDK. You can accidentally mark your "utility" projects as test projects by setting <IsTestProject>true</IsTestProject> on them, which will cause this issue.

If the project has no tests, you can opt-it out by setting <IsTestProject>false</IsTestProject>. If there are tests it should install Microsoft.NET.Test.SDK

This was referenced Nov 1, 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

Successfully merging this pull request may close these issues.

testhost-8.0.runtimeconfig.json missing from .Net 8

6 participants