问题
Following the steps described in the Visual Studio Code documentation, running the final command dnx . kestrel
via the Command Palette of VSCode on Mac OS X results in an IOException when visiting http://localhost:5001:
kqueue() FileSystemWatcher has reached the maximum nunmber of files to watch.
See the attached screenshot for the complete stacktrace. What could be wrong?

回答1:
It's a known mono bug. In order to fix it set the MONO_MANAGED_WATCHER
environment variable:
export MONO_MANAGED_WATCHER=false
Source
来源:https://stackoverflow.com/questions/29971826/running-first-asp-net-5-application-using-vscode-dnx-and-kestrel-results-in-ioe