I have created a .Net Core MVC app. At the top level of the project I have my wwwroot directory, my program.cs and startup.cs files as you'd expect. Under Dependencies I have a bower folder with all my bower references (all before introducing angular 2).
When I installed NPM it created a hidden folder 'node_modules' at the root level of the project and then subsequently another folder in Dependencies called npm for all my npm installs. This all seems ok project builds etc. Now I introduce an app folder under wwwroot and I place main.ts, module.ts etc. still all ok. I come back to one of my _Layout.cshtml pages and try to make a reference to some of the js files sitting in the hidden node_modules folder. However, when trying to set the source it always expects these files to be in WWWRoot, but they are up 1 level. A typical reference is:
<script src="node_modules/zone.js/dist/zone.js"></script>
if I move the hidden folder to be under WWWRoot then everything in the npm folder under dependencies says that the dependencies are not installed. Move the hidden folder back to the root level and my dependencies all come back. How can I force the script block to not expect the above to be under wwwroot?
`
– Vassilis Pits Nov 18 '16 at 16:02