I'm new to mac but not .Net. I'm playing around with Visual Studio Code. I installed Brew and used it to get yo
, grunt-cli
, generator-aspnet
, dnvm
, and everything the tutorials say to get. I created a project scaffold with yo
and the first thing I want to do is add a Controller that inherits from ApiController but I can't seem to find a way to "Add a reference" like I would in Visual Studio proper.
It looks like I should open project.json and add something like this:
"System.Web.Http": "<some version number>"
under dependencies. I don't know what version number to use, so I tried "latest" but anytime I run dnu update
it says System.Web.Http can't be found.
Where can I find information about adding references to Visual Studio Code? How to reference particular DLLs (specifically System.Web.Http
for me) and what versions to reference?