Hi, In VS 2017 I created an ASP.NET Core 2.0 web application using Razor Pages (selecting the "Web Application" template going against the .NET 4.6.2 Framework.
I'm attempting to use ScriptTagHelpers as follows:
<environment include="Development">
Test message
<script type="text/javascript" asp-src-include="~/dist/inline*.js"></script>
<script type="text/javascript" asp-src-include="~/dist/polyfills*.js"></script>
<script type="text/javascript" asp-src-include="~/dist/main*.js"></script>
</environment>
My dist folder has files like
inline.a6a6086a58f576424ebf.bundle.js
The test message get rendered but none of the script tags do. I wanted to use this as the hashed js files get created and I wanted to use this for cache busting.
Do I need to use MVC? or use the .NET Core Framework ? It gives no indication of an error that the script tag is invalid or that I can't find the file.
Any thoughts would be appreciated. Thx