There were before aspdotnet1.0 include/exclude sections on project.json file
aspdotnet1.0
project.json
{ \"exclude\": [ \"node_modules\", \"bower_c
With Visual Studio 2017 (tested in 15.6.5), you can right-click on the file in the Solution Explorer and set the Build Action to None.
It will update your .csproj file like this:
.csproj
Hope this helps.