This new version will be lightweight (think OWIN) with things being filled out by components which are brought in. In the vNext way of doing things Visual Studio is to become a metamanager for Visual Studio packages. The new MVC, now on its seventh beta, will include both MVC and the Web API but web forms and VB.NET will not be invited into this framework. Maybe one day SignalR and the "web pages" thingy of WebMatrix will be included but as of right now there hasn't been enough cry out for either to merit their inclusion. There will be no more bin and obj folders. These concerns will now be kept in memory. One of the biggest changes is that there is now no longer a Web.config file and instead we will have project.json which is kinda like packages.config in modern JS projects. project.json has inside of it, you guessed it, JSON. The example that James showed off had subsections for webroot, userSecretsId, version, dependencies, commands, frameworks, exclude, bundleExclude, and scripts. The version of .NET we are running will be kept in frameworks and dependencies such as Entity Framework are listed under commands. Do "dependencies" fill in the gaps for "commands" perhaps? I'm not sure. Child actions, which are bit like partial views, which take a shape like @Html.Action("SomeActionName", "SomeController") for example, are being replaced in MVC6 with something called view components. @await Component.InvokeAsync("ProfileLinks") is an example of what they will look like. One may, yes, use the await keyword to bring in components asynchronously. @Component.Invoke("Notifications") is another example of new Razor markup for including abstracted-away content. Tag helpers and view helpers are other newish concepts. Expect also improvements in identity including OAuth 2.0 bearer tokens! https://github.com/aspnet and https://docs.asp.net/ and https://live.asp.net/ were offered at the last slide as some helpful links. Expect MVC6 to be out of beta and in your hands around November of this year! w00t!
No comments:
Post a Comment