Translate

.NET Visual Studio 2017 with .NET Core 2 and .NET Standard 2.0 feature highlights

.NET Core 2.0 is a  cross-platform, open source framework which is now available with latest Microsoft Visual Studio 2017 release. It is much-improved version as compared to its previous version i.e Net Core 1.0  and much faster and well versed with new functionalities and a lot of API support. Let's check out what's new with .NET Core 2.0

Well, you may be too curious about the new features provided by Microsoft and Community in .NET Core 2.0, as we are all aware of now that .NET Core is now open source and it has gained a lot of inputs from different Technology giants like Samsung, RedHat, Unity, Google and other communities like CoreFx, Ryjuit etc.All of this community have contributed to making .NET Core 2.0 as one of the most powerful frameworks to date.

Folks let me give you a small insight of latest features from .NET Core 2.0 along with new .NET Standard 2.0, Importance of .NET Standard 2.0 and new .NET Editor changes which came in with Visual 2017

 New .NET Core 2.0 Features

  •  The .Net Core 2.0 is the fastest version of the .NET till date 

Microsoft has claimed .NET Core 2.0 as the best and powerful framework which has been developed to date, .NET Core 2.0 has tremendously improved hardware performance, improved memory utilization and much faster as compared to their peers.
 
.NET Core 2.0 is successfully tested for handling around 20000 request per second which is much faster as compared to that of Node.js.

  •   Loaded with More APIs  
             .Net Core 2.0 is now back with a lot of more API's as early version seems to have the drawback of missing lot of old API's such as for example DataSets, Datatables however, in .NET Core 2.0 developers will be again provided with the old DataSet and other third-party Apis. 

It will much easier to develop applications with ReactJS or Angular JS with the huge set of API around 20K API which will cater to developing the great product and enhanced user experience.

  • New and Improved .NET tooling System   
 As a part of  Visual Studio 2017 there has been the lot of improvements in areas such as Unit Testing, Code Analysis, Great Editor Experience, Improved Exception handling and debugging. I will be sharing all this in the future part. A lot of exciting features are added in Visual Studio 2017 which will make development a great experience.

  • Improvements in Terms of SDK
       1) .NET Framework NuGet packages can be referred by .NET Core and .NET Standard projects. 

       2)  .NET Core 1.0 used dotnet restore command to restore the required packages for the current Application, In .NET Core 2.0  no more dotnet restore command is used to restore the missing packages, .NET Core 2 will automatically take care of the packages while building the application. dotnet restore is now an implicit function.

       3)  The .NET Core SDK can be built from source with the source-build repo.

  • Introduction to .NET Standard 2.0

.Net Standard can be termed as Specifications for .NET which means .NET platform should implement the .NET Standard 2.0

   












  • Well this is the interesting fact which I found will be lot helpful for developers in keeping their code Standard from one platform to another with help  of .NET   Standard 2.0
  •  All the API's from different platforms are present in .NET Standard 2.0 which means that an App developed in Xamarin could be moved to .NET Core 2 and from Core to .NET Mac. 
  • Your Code would be completely free from the platform dependency and could be moved easily which would save a lot of time from rewriting of the code. One of the best and the cool feature I believe :)
  • Well moving ahead now let's have a look at the improvements made in context with respect toooo.... let's check it out
Changes in .NET Tooling and Editor with respect to Visual Studio 2017

1) Support for LIVE Unit Testing and Code Coverage

This is one of the fantastic features which has been in Introduced in Visual Studio 2017, the developer can get the live analysis of code coverage and also the visual view of whether each and every line of the code is getting passed or covered in the Live Unit Test.

Listed are the feature of Live Unit Testing
  •  Maintain quality and Test coverage as you Code
  •  Automatic Test Execution
  •  Visualize Code Coverage in IDE

Let me take you through some of the important snapshots of the Visual Studio 2017

  • Live Unit Test 












 In the Figure you can see there is a Live test which is currently running on the code.
 The Code marked with green tick is the code which is getting covered under the live test


The Code which is marked in the red cross is the code which has to fail a test either it has a single or multiple tests failing for the code.

  • Automatic property initialization and creation of property inside the method.

In the figure below, while typing a new parameter in the method of the Type Direction, the editor is suggesting for an option to add a property inside the method. 












This would help in saving a lot of time for the developer and also would help in maintaining the code integrity and help in solving improper parameter setting issues.

Also, there is an additional feature which helps in providing suggestion to do a null check for the initialized property, these are very interesting enhancements which would help the developer in building a proper and accurate functionality.

  • Improved and Simple Exception Handling Display


Exception Window is much more simplified, in the earlier version developer used to search for entire Exception Stack Trace in order to find the important error.




       






     Note in the Above exception window the first information lets the developer directly know the reason why the exception is getting occurred in the code.

Secondly, more flexibility has been added in order to show which variable is null, this was not existing in the earlier version, also Copy Details link is also present which would help in copying the Exception to the ClipBoard.

  • Include the file directly in the solution by pasting the file into solution Folder

A very unique feature which was lacking in the earlier solution framework was finally addressed in the new Visual Studio 2017.

In order to copy a file from different location into the solution and to use that file in the solution, developers used to copy the file from one location and paste the file in to the desired solution folder, once the file is pasted developer need to go the IDE and click "Show All files" button which would show the newly pasted file, but still the problem is the file is not included directly in to solution, yet developer needs to right click and then there is an option to "Include the File in the Solution" in order to include the file in to the solution.

Well, this had been addressed finally and the developer now just needs to just paste the file into the desired solution folder and file would automatically get displayed in the Visual Studio Solution file in  IDE.


Other features that are integrated with Vs 2017 are as follows

-  Short and Sweet csproj.config 
-  editorconfig introduction to define our own project specific rules
-  improved code merging and code indentation.

Please find the Full Demo below in the Video





Well, these were some of the enhanced features for upcoming .NET enhancement I will keep you posted and updated feel free to reach out for any queries, you can reach out to me through my mailId or post the comment if you have any queries.

Hey, Folks than you so much for reading the Article! Hope this Article would have helped in understanding the new .NET Core 2.0 along with .NET Standard 2.0 features and Visual Studio 2017 Enhancements. 

Please feel free share and comment!!! Have a good day...

 Thank you once again for reading :)

References: https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-net-core-2-0/
Youtube: Microsoft Channel



No comments:

Post a Comment