In my ASP.NET Core RC2 app in VS2015, I'm using following example of Collapsible List Groups that uses the following Javascript files. The example works fine in Visual Studio if I use the following scripts. But when I use the default javascipts installed in ASP.NET Core app (namely, <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> and
<script src="lib/jquery/dist/jquery.min.js"></script>) the same example does not work. Are the above default Javascripts different than the following. What can I add to these defaults Javascripts to make the same example work? :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
UPDATE The location of the above example html file in my ASP.NET Core project is as shown below and the header of my html file looks like the following:
<html>
<head>
<meta charset="utf-8" />
<link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<script src="lib/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="lib/jquery/dist/jquery.min.js"></script>
<title>SideBar demo</title>
</head>
<body>
...
</body>
</html>
My Html file location in ASP.NET Core project in VS2015:
My bower.json is as follows:
{
"name": "asp.net",
"private": true,
"dependencies": {
"jquery": "2.2.3",
"jquery-validation": "1.15.0",
"jquery-validation-unobtrusive": "3.2.6",
"bootstrap": "3.3.6"
},
"resolutions": {
"jquery": ">=1.8",
"jquery-validation": "1.15.0"
}
}
