In an ASP.MVC using angular, I have this structure
A folder 'App' (it's folder at root level) and some subfolders :
- Controllers (angular)
- Services (angular)
- Views (*.cshtml)
In a Index.cshtml file, placed in '/App/Views/SubFolder/, I'd like use the code below (or other razor) :
@section scripts
{
<script src="@Url.Content("~/App/Controllers/mycontroller.js")" type="text/javascript"></script>
}
I get this error: CS0103: The name 'Url' does not exist in the current context
I tried this solution : this solution but not work, same error. How can I solve this ? I'd like have intelissense too in this page.
Thanks,