It seems like there should be a straightforward solution to my question, but I'm struggling with it. I have an animation.js file that includes dependency_1.js and dependency_2.js in an include folder. Within my animation.js file, I load these dependencies relative to the animation.js file.
In my _Layout.cshtml file, I have:
@RenderSection("JavaScript", required: false)
And I included this in my view SomeView.cshtml:
@section JavaScript
{
<script type="text/javascript" src="@Url.Content("~/Scripts/animation.js")"</script> }
However, when animate.js attempts to call dependency_1.js, I receive a "404 Not Found" error for http://localhost:14611/includes/dependency_1.js"
I suspect this issue may be related to URL routing to the Scripts folder in my MVC project?