New ASP. Features and Fixes in Visual Studio RC

Source: Internet
Author: User
Tags asp net to domain

Jeffrey T. Fritz MSFTAPR 10:05 PM
    • 21st

Today Scott Hanselman announced the Release candidate of Visual Studio, Team Foundation Server and Visual Studio Update 5. We hope that all//build attendees is enjoying the show, and we are following up on the news of the Visual Studio Re Lease candidate to show your some of the cool new features delivered in this version for Web developers. With the Visual Studio Release Candidate We is delivering updates for ASP. 4.6 And our next generation ASP 5  Framework. You can read more about ASP. NET 5 online at Http://www.asp.net/vnext and review the new Open source documentation for ASP. NET 5 at Http://docs.asp.net Let's take a look at the new features delivered in the Visual Studio Release Candidate F or ASP. 4.6 and the ASP. 5 BETA4 Preview:

The Big Rename

If you ' ve been following the previous releases of Visual Studio and the nightly builds of ASP. Been familiar with the project K-Executables:k.exe, Klr.exe, Kpm.exe, and Kvm.exe in order to drop the project K Codenam E and move to a more market-friendly name of the ASP. Tooling, these command-line tools and the K-runtime were renamed as follows:

    • K and KLR is now DNX. DNX stands for. NET execution Environment.
    • KVM is now DNVM or the. NET Version Manager
    • KPM is migrating some functionality of it functionality to Dnu, the. NET development Utility and some functionality would Migrate to be core NuGet functionality
    • The ASPNET50 and Aspnetcore50 framework monikers in Project.json files is being replaced with dnx451 and Dnxcore50.
The ASP. 5 Community Standup has a video discussing the rename decision in depth. That video was from some time ago this refers to nightly builds or "daily bits", those changes has been completed and is In this release. New Project Templates and Project Types

In the prior versions of Visual Studio, we made project types available for Project K class library and Project K con  Sole applications. These project type names don ' t make sense in our new World and we have renamed them appropriately:

Class Library (package) is a class library project, which is configured to allow you to build reference libraries that Compi  Le directly into NuGet packages. Console application is a similar project, allows console applications to being built in the same model as an ASP. 5 we  b application, referencing NuGet packages and configuring multiple frameworks to build against. Both of these project types allow the developer to configure everything with a Project.json file and target the. NET Core Framework.

We ' ve also simplified and updated the ASP. Web project templates in this release. There is clear dividing lines between the ASP. and ASP. 5 4.6, as well as projects updated for a single P Age application and Azure Mobile Service:

The ASP. 5 templates is updated as well, with additional security and JavaScript features configured to make them an E  Asier starting point for building applications. Can learn more on how to start a new ASP. 5 Project Online at:http://www.asp.net/vnext/overview/aspnet-vnext/asp Net-5-overview

ADD Missing NuGet Packages in ASP. 5

Our favorite new feature for ASP. 5 Developers is the cool new feature to help you add the correct NuGet packages to yo ur project for the types, that's referencing. In the ASP 5 environment, all references is NuGet packages, and how would you know which ones to add when you just WAN  T to light-up this XDocument type to work with an XML document? In an ASP. NET 5 Web project or class library project, you can just press CTRL +. (period) to activate a helper on the editor that would offer to add the missing package to your project:

The editor would suggest the package to add and show you the changes that it's going to make to the Using statements at th e Top of the code file in order to allow your code to function properly.

Performance Updates for ASP 5

We focused a significant amount of time on improving the performance of the Visual Studio developer experience. In this release, you should see a noticeable speed increase when opening existing solutions with ASP 5 projects as Wel L as launching the application. There is a number of other less important performance tweaks under the hood for ASP. 5 projects as well.

Editor improvements to support taghelpers

Taghelpers for ASP. Were introduced in a earlier preview, but in this release they really come into their own. Taghelpers provide a simple tag experience in the Razor editor this allow you to execute code on the server and inject con  Tent in the output.  Scott Hanselman and Jeff Fritz have posts this introduce and demonstrate how to start writing your first taghelper. The ASP. Community standup discussed taghelpers in March 2015.

We have added editor, so, can easily see where your. NET code would take over rendering your HTML. With bold tags names and IntelliSense for attributes, coding HTML with these complex server-side interactions have B Ecome easier than ever.

Add Reference to Project

We ' ve re-introduced the ability to add references to an ASP. 5 project from standard class library projects. In the image above, the ClassLibrary1 project was a standard class library and while the Taghelpersample.helpers project was an ASP. 5 Specific Class library. Both library types is supported interchangeably now.

Cleaned up solution Explorer with Automatic File Nesting

With net 5, we ' ve promoted the fact that the ASP. NET developers should start to use more standard web practices for Acquir ING, minifying, and otherwise processing your static resources before they is served to your Web application ' s visitors.

The display of minified resources easier to review in your Solution Explorer, any files with an extension of Min.css or min.js would be nested automatically under the un-processed version of this file. We hope that you find this to is a useful addition to the Solution Explorer.

Local IIS Express Custom Configuration

If you were finding so were constantly updating your applicationhost.config file on your machine each time you start Ed a new project, then this feature'll be a welcome. With the new ASP. Tooling, your custom IIS Web server configurations is stored in the solution's. vs folder in an APPL Icationhost.config file. This should help isolate your Web server configurations for each of the your projects without conflicting references to a sing Le configuration file.

Security Updates for ASP.

There is a number of security-focused updates in this release for both ASP. NET 4.6 and ASP. 5:

  • ASP. 4.6
    • Updates to templates using ' work and School account ' for authentication. This also includes fixes to Domain picker used to select your tenant.
    • Use Roslyn Code Dom Compilers. The packages is pre-installed in Web Forms Template. They'll is added to all 4.6 templates by RTM. You can link to your post about VB orhttp://blogs.msdn.com/b/webdev/archive/2014/05/12/ Enabling-the-net-compiler-platform-roslyn-in-asp-net-applications.aspx?
  • ASP. 5
    • The individual Web Site authorization template option now allows developers to configure social logins, account Confirmati On, and two-factor authentication.
    • Templates is using Gulp.
    • SSL can is configured from the Web project property pages.
    • The ASP. Authorization Library now allows for authorization using policies.
    • Web Projects can now is configured to use Windows authentication.
Custom Launch Settings is saved as Project Properties

If you want to lock in the version of the framework of this your project for compilation and debugging, those settings is no W saved with your project in the new Launchsettings.json file in your project Properties folder. This means, your team members would have the same debugging configuration when they synchronize source code.

Additionally, we have simplified the format of this configuration file to make it easier to read and work with:

ASP. 4.6 Improvements

We have a number of updates for ASP. 4.6 which includes web Forms, MVC 5 and Web API 2. These include support for. NET Compiler Platform (Roslyn), hosting changes in IIS to support HTTP/2 and more. Read this post for more details.

Summary

We is working on evolving the ASP. Environment and tooling. This might is a release candidate build for Visual Studio, but we is looking at the big picture for ASP. We'll continue to develop at the same pace in the open athttp://github.com/aspnet/home. We is building and releasing our libraries and updates for Visual Studio with the updates delivered on NuGet and the Visu Al Studio Extension Gallery. Keep an eye on our blog to hear about our next set of features.

New ASP. Features and Fixes in Visual Studio RC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.