The Main project is in bold which means it is the startup project. Therefore, site.js 2 is the JavaScript file that is returned by the static file handler. The project/solution is functioning as expected.
Confused file path notations on multiproject solution

Marios Charalambous
40
Reputation points
In my IndexJson.cshtml i have a script notation with src tag:
<script src="~/js/site.js"></script>
But it reads from my Main's project site.js noted with number 2 on my image , instead of reading from site.js number 1.