Typically, I would navigate to
<script src="~/Scripts/Controls/SomeScript.js"></script>
This script usually locates SomeScript.js in the "Scripts/Controls" directory of the same project as the ASP.NET .cshtml page.
Now, it is time to share the javascript file between two projects. I need to move it to a library project.
What should be the value of the src attribute to find the javascript file in a different project within the same solution? Is there anything else that needs to be done? How do developers typically solve this issue?
I attempted to use "Copy to output directory" on the properties page of "SomeScript.js", which results in the script and its folder being copied to the 'bin' directory. However, Chrome indicates "Not allowed to load local resource" when trying to access .js files in the bin folder.