You have to use dnu.
To restore packages:
$ dnu restore
To build: $ dnu build
To run: $ dnx run
To run some other command: $ dnx <COMMAND_HERE>