The section covers the updated project structure and handling client-side dependencies with Bower.
Visual Studio is smart enough to watch for changes and automatically loads and unloads libraries when you add or take away items from bower.json. So let's take a look at the bower.json file. And we see here we've got four dependencies within the application, Bootstrap, jQuery, jQuery Validation and jQuery Validation Unobtrusive. The .bower.rc file just sets the installation directory to this lib directory.
If we expand the lib directory, we see that we have the same four libraries, and it pulls down everything that we might need for a particular library. There's also a graphical component to this, so if you right-click on bower.json you can go to Manage Bower Packages, and this looks very similar to the NuGet package manager, and you can run your updates, you can browse for ones that are out there, you can search by name.
The advantage of Bower is that I don't have to worry about checking in all the frameworks. I don't have to go out and download the latest copy of Bootstrap and then plug it in and then change my file references. All of that stuff is managed for us auto-magically.
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages