0

So I basically want to be able to have a test-only dependency that is available during dotnet test. Is there a way to do it?

I am aware that project.json is scheduled to be sunsetted, but until that time, I will continue to use it.

Nicholas Terry
  • 1,812
  • 24
  • 40
  • 1
    project.json is already deprecated, VS2017 and associated tooling was released 6 days ago. – DavidG Mar 13 '17 at 02:10
  • dotnet test --configuration "Test-only" then nest "dependencies" under "configurations" or under "compilationOptions" set a "define" constant (untested ideas). – Boggin Mar 13 '17 at 09:27
  • 1
    Couldn't you put that dependency in your test project? – svick Mar 13 '17 at 17:38

0 Answers0