What`s New in Visual Studio 2015 RC

Visual Studio 2015

0 ( 0 votes) | 2081

In this article we will talk about the new features in Visual Studio 2015 RC. In build 2015Scott Hanselman announces the availability of Visual Studio 2015 RC. To download Visual Studio 2015 RC click here. This Release candidate (RC) includes many new features and updates. So let`s take a look what new we have got in this release.

Big Rename:

In previous release of Visual Studio 2015, all the command line utilities (Project K executable) which help in compiling and hosting/running the ASP.NET 5 application are renamed as following:

  • k/ klr (K Language Run time) is now dnxwhich stands for .Net execution environment.
  • kvm (k Version manager) is now dnvm which stands for .Net version manager.
  • kpm (k Package Manager) is now dnu which stand for .Net utility.
  • Framework aspnet50 and aspnetcore50 in project.json are renamed as dnx451 anddnxcore50 respectively (F: 1).

 Framework names are renamed (F: 1)

Updated Project Templates:

ASP.NET 5 templates is also updated with some additional security and java script features. Let`s create new ASP.NET 5 project to see the new changes.  To create new ASP.NET 5 project, open Visual Studio 2015 create a new project via File =>New Project. Make sure “Web” option is selected in C# language template on left part of project window. Then choose ASP.NET Web application, enter the project name and then click on OK button as shown below (F: 2).

Project Window (F: 2)

This will open up ASP.NET project template dialog as show below (F: 3).

ASP.NET Project Template Dialog (F: 3)

Select “Web Site” option under ASP.NET 5 Preview Templates section and then click on OK button. At this point, project is getting created, it may take few moments. Once project is created it’s should look like this (F: 4).

ASP.NET 5 Project (F: 4)

Now let`s take a look at the solution explorer to find out new changes (F: 5).

Solution Explorer Content (F: 5)

Most of the elements are same as in previous version of Visual Studio 2015 except the new folder called “Compiler“.  Compiler folder contains one .cs file called “RazorPreCompilation.cs” in sub folder called “Preprocess“. Let`s open the “RazorPreCompilation.cs” to see what it contains. Content of file are as shown below (F: 6)

Razor View Compilation (F: 6)

As per the comments shown in image, this file is used for pre-compilation of Razor Views which means we will able to detect the errors in views at compile time. Previously to enable this feature we need to edit the project file and change the value of “MvcBuildViews” tag from false to true. Let`s uncomment the code and take a look at the definition for “RazorPreCompileModule” class. Definition for “RazorPreCompileModule” class is as shown below (F: 7).

Class definition for RazorPreCompileModule class (F: 7)

As shown in image “RazorPreCompileModule” class implement “ICompileModule” interface.  This is an extensibility point in this release. We can implement our own compile module by implementing the “ICompileModule” interface and can put that in compiler/preprocess or compiler/postprocess folder in our project.

Automatic File Nesting Feature:

File nesting means any file with an extension of min.css or min.js will be nested under un-processed version of that file as shown below (F: 8).

File Nesting Feature (F: 8)

In previous version of visual studio, to enable this feature we need to install an extension called “File Nesting By Mads Kristensen” but now its included in Visual Studio 2015 RC.

Security Updates for ASP.NET 5:

  • Developer can now configure social login (Facebook, Gmail, Twitter and Microsoft), account confirmation and two-factor authentication.
  • SSL and Windows Authentication can also be configured for web project using project properties window as shown below (F: 9).

Project Properties Window to enable SSL and Windows Authentication (F: 9)

  • There is one more change. Open the windows explorer and navigate to the project location. You will not be able to see the .csproj file. Instead it is now .xproj file as shown below (F: 10).

Project file is renamed to .xproj file (F: 10)

I hope you enjoyed the article. If i am missing something please comment blow.

 

Manoj Kulkarni - Dotnetcontext

Manoj Kulkarni

I am programmer, passionate blogger and foodie. I live in Nashik. I am a .Net developer. I like to learn new technologies to keep my self-updated and share that knowledge with my blog readers, friends and colleague.

2 Comments


gaurav - Dotnetcontext

gauravFriday, March 11, 2016 5:18 AM

Hey MK, Thanks again for post it helped in getting detailed description in vs15 and defining download location

Manoj Kulkarni - Dotnetcontext

Manoj KulkarniFriday, March 11, 2016 5:19 AM

Thank you for the feedback Gaurav

Add a new comment