![]() ![]() Next up is actually using LibMan to drop in a client JavaScript library, and for this I'm going to choose. Once that was done I added a simple index.html to call so that requests get processed in the right order! Just to summarise, Startup looks like this: public void Configure(IApplicationBuilder app, IHostingEnvironment env) Next up was making sure that static content (HTML, JavaScript, CSS and all that jazz) would be served by adding app.UseStaticFiles() to my Startup class. ![]() It works either by looking at the CDNJS distribution network, or a local (or network!) file-system store you've specified, so if you want to make sure your development teams environment will function in the absence of either internet access or the availability of CDNJS then there are options there for you.Īctually using it is really simple, to demonstrate it I've created a new ASP.NET Core Web Application project (2.1, of course!) choosing the just give me an empty project and I'll go from there option to keep it really really simple. LibMan seems to be focused on client-side library and CSS management rather than being an "all the things" delivery method like NuGet, it doesn't require any additional tooling (so no npm along with its Node.js dependencies) and it lets you be explicit about where you want files to end up in your project, rather than having to add build tasks to hustle files around from where the package manager puts them to where you want them. What's LibMan, why's it different and how does it work? ![]() There's a lot of different library/package managers out there, of course there's NuGet, NPM, Bower and Yarn to name some of the better known ones - and I'm sure I'll have missed a few from the "better known" list even then. ![]() The latest release of Visual Studio 2017 (15.8) comes with Microsoft Library Manager, or LibMan for short, there's also a CLI available and if you want to read about it from the horses mouth there's a post on the ASP.NET Blog all about it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |