title: dotnet tests not run with flag --no-build in docker
body: <p>I have a unit test (dotnet application), I run next command: "dotnet test mytest.csproj --no-build /p:CollectCoverage=true ..." in a docker container. Eventually I do not get tests' results. I use a flag --no-build to remove extra load on network when need to download nuget packages(it happens only in docker image). </p>
  
  <p>Before test I create a docker image where I do build test's project.
  Then when I run tests inside container I get only a status: "Build success" instead of running tests. If delete a flag "--no-build" tests start. Or if do "dotnet build" before run tests, test also will be run even with flag --no-build.</p>
  
  <p>I've noticed that if test run on .dll file "dotnet test mytest.dll --no-build /p:CollectCoverage=true ..." test run successfully, but here is another problem: no cobertura results. And an argument /p:CollectCoverage=true will be as invalid.</p>
  
  <p>How can I fix this problem?</p>
  
  <p>On the screen is not full Dockerfile, only with steps which necessary for dotnet</p>
  
  <p><a href="https://i.stack.imgur.com/TPVTO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TPVTO.jpg" alt="enter image description here"></a></p>