Introduction

ASP.NET is a server-side web application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web pages, web applications and web services. The very first version of ASP.NET was published in January 2002. ASP.NET was built to provide a common platform that later became to be known as the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.

Released Improvements:

ASP.NET Runtime Updates

After updates in Visual Studio 2013, some brilliant features were enhanced in this release of Visual Studio that supports the creation and development of ASP.NET 5 Preview applications. ASP.NET 5 Preview is clean and free of bugs and is a composable .NET stack for building modern web applications for both cloud and on-premises servers. Some new or updated features are given below.

ASP.NET Tooling Updates

Tools are something that play an indispensable part in project development and optimizes them as well. Tools provide programmers a more productive coding experience. Some wonderful features released are:

Templates

In the older version likewise 2013 the "ASP.NET 5 Empty" and "ASP.NET 5 Starter Web" templates did not exist.

ASP.NET 2013 templates

Now the newer release of Visual Studio 2015 contains the "ASP.NET 5 Empty" and "ASP.NET 5 Starter Web" templates that were added to the "New ASP.NET Project" dialog for C#.

ASP.NET 2015 template

The "ASP.NET 5 Class Library" and "ASP.NET 5 Console Application" templates are added to the "New Project" dialog under "Visual C#"/Web.

Older Version

Library ASP.NET 2013

Newer Version

A console and class library are also included in ASP.NET 5.

ASP.NET 2015 library


Projects and Builds

The project file no longer includes a project directory items and references.

In the latest release of updates to project files ASP.NET 5 projects uses the "projectName".kproj file as Visual Studio's project file. The .kproj file doesn't include any type of files from the recent directory or sub-directories, since Visual Studio automatically includes and monitors the ASP.NET 5 project directory files.

Project.json file is used to define project information

Since the enhancement done to Visual Studio it is now possible to use the project.json file for reference and package dependencies, version definitions, framework configurations, compile options, build events, package creation meta-data and run commands, as well as other details that also become reliable. This way, the project can be edited and can be run in Linux and on MacOS machines that do not have Visual Studio. That is far better than previous versions.

Dependencies node for Bower and NPM dependencies

NPM is the default package manager in the node.js. This release of Solution Explorer for ASP.NET 5 Web Applications now contains a Dependencies node showing Bower and NPM dependencies. The Bower dependencies are from bower.json in the project folder. The NPM dependencies are from package.json in the project folder. In the Dependencies node, under the Bower and NPM's package nodes, you can uninstall a package using the context menu command at any time, that will automatically remove the package from the corresponding JSON file and it seems more reliable and interesting as well.

dependencies in ASP.NET 2015


Fast build time with Visual Studio

The build time is enhanced in this release such that in previous versions we saw that a project takes so much time to Build. Visual Studio uses the Roslyn engine to compile ASP.NET 5 projects at design time. Therefore, the project has already been compiled when you issue a "build" request. In Visual Studio 2015 Preview, Visual Studio simply es the design time compiler output to the build request. This avoids another build and improves performance when you build, run, or debug ASP.NET 5 projects. This feature reduces the time for making a build request.

NuGet package manager enhancement

The NuGet Package Manager manages all the packages in the Visual Studio that might be rewritten by Microsoft in a new release using the tool window style and can be viewed per project and solution. Now each project can open a NuGet Package Manager window at the same time. This change applies to all type of projects that uses the NuGet Package Manager.

NuGet package 2015

older version of NuGet

NuGet manager older 2013

IntelliSense and Error list

IntelliSense is the process in which suggestions are shown and errors pointed during the coding of the project in the editor and that reduces the time for coding the project. An IntelliSense item that exists in one framework, but not in another will be listed in the IntelliSense with a warning sign. The IntelliSense tooltip indicates which framework supports it and which framework doesn't.

Build errors shows from which framework the error arises. So, if you have an error in the code that is recognized by two targeting frameworks at a time, then it will show in two places, in the error and output error list, with the same description and file location, but with different project names that includes the framework name.

JSON Editor Improvement

Certain improvements have been made to the JavaScript Object Notation (JSON) editor, including performance and other improvements, such as loading the JSON schema asynchronously, caching of the child schemas and better IntelliSense. Additionally, there are the following new features:

HTML Editor Improvement

There are many improvements in the many editors and HTML is also in the fray of Improvement with many improvements like bug fixing and much more. Some of the most updated features are:

CSS/LESS/Sass Editor Improvements

Browser Link

After the feature enhancements, synchronization becomes more popular, CSS is now automatically synchronized, saving the CSS file or changing it externally (such as by using a LESS/SASS compiler) will cause the entire CSS file to reload in the browser. If the file is in a state where it cannot automatically synchronize then Ctrl + S will cause an automatic reload and this should return it back into a good state without having to refresh the linked browsers (Ctrl + Alt + Enter). The feature might be disabled in the toolbar when not in use, it wil depend on the programmer's will.

WebJobs Tooling

Visual Studio now supports controlling web jobs using Server Explorer WebJob's node inside an Azure Website in the following ways:

Summary

This article just highlights the new features released by Microsoft on ASP.NET 5 in Visual Studio 2015 preview. Some tooling features are enhanced in this version, likewise enhancement in the editors of HTML, CSS, JSON and so on. Unlike many updates to the runtime, Microsoft as well has now enhanced the development environment and experience.