ASP.net Core Api Scripts' does not exists in the current context. code example
Example: the name scripts does not exist in the current context mvc 5
<system.web.webPages.razor>
<pages>
<namespaces>
<add namespace="System.Web.Optimization"/>
</namespaces>
</pages>
</system.web.webPages.razor>