Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

When my org started containerising our code, we discovered our test projects weren't being discovered by dotnet test <solution> (where <solution> refers to a sln(x) containing at least one test project referencing Microsoft.Net.Test.Sdk) when tests were executed in Docker builds. Subsequent investigation revealed this is because projects referencing that package, implicitly get IsTestProject=true set via a .props file shipped with it - and in our Dockerfile's test run layer we'd omitted copying the NuGet packages, which meant that file didn't exist. (sad trombone noise)

We're now considering a move to MTP. Given that it doesn't appear to require Microsoft.Net.Test.Sdk so presumably doesn't care about the presence or absence of IsTestProject, we'd thus like to understand how dotnet test <solution> discovers MTP projects - so that we can ensure our Dockerfiles don't do anything that would prevent this discovery from working as we expect.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.