dnx
dnx copied to clipboard
Support running global dnx commands
The most important use-case I found where I needed to run dnx commands from the root of the solution is to run test command on all of my test projects under test directory.
For example on a project with the following structure:
my-solution/
src/
test/
test-proj1/
project.json -- that defines test command
test-proj2/
project.json -- that defines test command
When running:
cd ./my-solution
dnx . test
All tests get executed:
Discovered: test-proj1
Starting: test-proj1
...
Finished: test-proj1
Discovered: test-proj2
Starting: test-proj2
...
Finished: test-proj2
One could think of even more use-cases for this. For example dnx . clean
Possible solutions
One possible solution is to support glob-like patterns for the --appbase. so we could say:
dnx ./test/* test