question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet test should have a --runtime option for consistency with other commands.

See original GitHub issue

Steps to reproduce

First dotnet build -r linux-x64 So xxx.dll file will generate to /bin/Release/netcoreapp2.1/linux-x64/ folder. Then dotnet test --no-build Will get a error like this

The test source file “/bin/Release/netcoreapp2.1/xxx.dll” provided was not found.

how to solve it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
peterhuenecommented, Jul 30, 2018

Hi @Rwing. Thanks again for reporting this issue. I’ve made a fix to 2.2.100 (a future version of the .NET Core SDK) that will add the --runtime option to dotnet test. As such, I’m closing this issue. Please reopen if you have any questions or concerns. Thanks!

1reaction
MuiBienCarlotacommented, Jan 23, 2020

@peterhuene –runtime have not been added to documentation (in fact, latest dotnet test documentation is for 2.1 version)

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet test should have a --runtime option for consistency ...
I agree. I would like to make these options consistent between the "implicit restoring" and "implicit building" commands. Unfortunately, the ...
Read more >
Can dotnet-test specify a runtime-identifier?
I am trying to use dotnet test, but I would like to be able to specify a runtime identifier. Specifically, I need to...
Read more >
dotnet test command - .NET CLI
The dotnet test command is used to execute unit tests in a given solution. The dotnet test command builds the solution and runs...
Read more >
dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >
dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found