I'm working on an ASP.Net Core 1.0 site project I inherited from when it was RC1... We've moved it to .NETCoreApp ver 1.0 now via started a new project with the latest template and migrated the code over. 95% works now except signalR (of course) and some UI particulars... (This whole new way of 'gulp' and 'sass' and all gets confusing.)
So, my site is working, but when I click what should open a modal, it disappears almost instantly. From what I read (and have done before in MVC 5) is that I must have included the bootstrap bundle twice or referenced it twice in some fashion.
Previously, in MVC 5, the _Layout would have something like:
@Scripts.Render("~/bundles/bootstrap")
and then in App_Start/BunfleConfig.cs would be:
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
and the various css as well in this fashion...
in the 'new', I am having trouble understanding the whole gulp
-to-wwwroot process and the project.json controlling what gets included/excluded in publishOptions... I don't know if I am coming or going...
Basically, my modals are opening and closing instantly... bootstrap included twice?.. how to investigate?
And where to include bootstrap/jquery? under Bower or NPM?
I run the gulpfile method to minify and move the js/css/sass into the wwwroot area: