In this article we will talk about the new features in Visual Studio 2015 RC. In build 2015, Scott 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.
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:
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).
This will open up ASP.NET project template dialog as show below (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).
Now let`s take a look at the solution explorer to find out new changes (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)
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).
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.
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).
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.
SSL and Windows Authentication can also be configured for web project using project properties window as shown below (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).
I hope you enjoyed the article. If i am missing something please comment blow.
Hey MK, Thanks again for post it helped in getting detailed description in vs15 and defining download location
Thank you for the feedback Gaurav