This has happened in a few different files, I tried regenerating the *.min.js and *.min.js.map files, but it just wouldn’t go away.
Eventually with a bit of searching Ifound the cause of the problem, Asp.Net MVC Bundles.
Our code was:
and we changed it to:
This stops the bundle loading the map files.
I’ve just started a new MVC5 project, and just couldn’t remember exactly how to do this.
- Create a new project
- Create your models
- Create your DbContext
- Create a Database Initializer
- Add Database Initializer into Global.asax
public class ApplicationDbContextInitializer : DropCreateDatabaseIfModelChanges<ApplicationDbContext>
protected override void Seed(ApplicationDbContext context)
I’ve been using Pluralsight.com for the past couple of months, and my usage has been really ramping up lately. The quality of videos is excellent, and they cover a wide variety of the new development technologies that I’m looking at. I’ve been through quite a few of the Windows Phone and MVC videos, and all of them have been excellent.