New ASP.NET Features and Fixes in Visual Studio 2015 RC

Jeffrey T. Fritz MSFT

29 Apr 2015 10:05 PM

Today Scott Hanselman announced the Release Candidate of Visual Studio 2015, Team Foundation Server 2015 and Visual Studio 2013 Update 5. We hope that all //build attendees are enjoying the show, and we are following up on the news of the Visual Studio 2015 Release Candidate to show you some of the cool new features delivered in this version for web developers. With the Visual Studio 2015 release candidate we are delivering updates for ASP.NET 4.6 and our next generation ASP.NET 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 2015 release candidate for ASP.NET 4.6 and the ASP.NET 5 beta4 preview:

The Big Rename

If you’ve been following the previous releases of Visual Studio 2015 and the nightly builds of ASP.NET, you have no doubt been familiar with the Project K executables: k.exe, klr.exe, kpm.exe, and kvm.exe  In order to drop the Project K codename and move to a more market-friendly name of the ASP.NET tooling, these command-line tools and the K-Runtime were renamed as follows:

  • k and klr are now DNX. DNX stands for .NET Execution Environment.
  • kvm is now dnvm or the .NET Version Manager
  • kpm is migrating some functionality of its functionality to dnu, the .NET Development Utility and some functionality will migrate to be core NuGet functionality
  • The Aspnet50 and aspnetcore50 framework monikers in project.json files are being replaced with dnx451 and dnxcore50.

The ASP.NET 5 Community Standup has a video discussing the rename decision in depth.  That video is from some time ago that refers to nightly builds or "daily bits", those changes have been completed and are in this release.

New Project Templates and Project Types

In the prior versions of Visual Studio 2015, we made project types available for Project K class library and Project K console 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 that is configured to allow you to build reference libraries that compile directly into NuGet packages.  Console application is a similar project that allows console applications to be built in the same model as an ASP.NET 5 web 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.NET web project templates in this release. There are clear dividing lines between the ASP.NET 4.6 and ASP.NET 5 projects, as well as updated templates for a Single Page Application and Azure Mobile Service:

The ASP.NET 5 templates are updated as well, with additional security and JavaScript features configured to make them an easier starting point for building applications.  You can learn more about how to start a new ASP.NET 5 project online at:http://www.asp.net/vnext/overview/aspnet-vnext/aspnet-5-overview

Add Missing NuGet Packages in ASP.NET 5

Our favorite new feature for ASP.NET 5 developers is the cool new feature to help you add the correct NuGet packages to your project for the types that you are referencing. In the ASP.NET 5 environment, all references are NuGet packages, and how will you know which ones to add when you just want to light-up that 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 in the editor that will offer to add the missing package to your project:

The editor will suggest the package to add and show you the changes that it is going to make to the Using statements at the top of the code file in order to allow your code to function properly.

Performance Updates for ASP.NET 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.NET 5 projects as well as launching the application. There are a number of other less important performance tweaks under the hood for ASP.NET 5 projects as well.

Editor Improvements to Support TagHelpers

TagHelpers for ASP.NET MVC were introduced in an earlier preview, but in this release they really come into their own.  TagHelpers provide a simple tag experience in the razor editor that allow you to execute code on the server and inject content in the output.  Scott Hanselman and Jeff Fritz have posts that introduce and demonstrate how to start writing your first TagHelper.  The ASP.NET Community standup discussed TagHelpers in March 2015.

We have added editor support so that you can easily see where your .NET code will take over rendering your HTML.  With bold tag names and intellisense support for attributes, coding HTML with these complex server-side interactions has become easier than ever.

Add Reference to Project

We’ve re-introduced the ability to add references to an ASP.NET 5 project from standard class library projects. In the image above, the ClassLibrary1 project is a standard class library, while the TagHelperSample.Helpers project is an ASP.NET 5 specific class library. Both library types are supported interchangeably now.

Cleaned Up Solution Explorer with Automatic File Nesting

With ASP.NET 5, we’ve promoted the fact that ASP.NET developers should start to use more standard web practices for acquiring, minifying, and otherwise processing your static resources before they are served to your web application’s visitors.

To help make the display of minified resources easier to review in your solution explorer, any files with an extension of min.css or min.js will be nested automatically under the un-processed version of that file. We hope that you find this to be a useful addition to the solution explorer.

Local IIS Express Custom Configuration

If you were finding that you were constantly updating your applicationHost.config file on your machine each time you started a new project, then this feature will be a welcome change. With the new ASP.NET tooling, your custom IIS web server configurations are stored in the solution’s .vs folder in an applicationHost.config file. This should help isolate your web server configurations for each of your projects without conflicting references to a single configuration file.

Security Updates for ASP.NET

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

  • ASP.NET 4.6

  • ASP.NET 5
    • The individual web site authorization template option now allows developers to configure social logins, account confirmation, and two-factor authentication.
    • Templates are using Gulp.
    • SSL can be configured from web project property pages.
    • The ASP.NET authorization library now allows for authorization using policies.
    • Web Projects can now be configured to use Windows authentication.

Custom Launch Settings are saved as Project Properties

If you want to lock in the version of the framework that your project for compilation and debugging, those settings are now saved with your project in the new launchSettings.json file in your project properties folder. This means that all of your team members will 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.NET 4.6 Improvements

We have a number of updates for ASP.NET 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 are working on evolving the ASP.NET environment and tooling. This might be a release candidate build for Visual Studio, but we are looking at the big picture for ASP.NET. We will continue to develop at the same pace in the open athttp://github.com/aspnet/home. We are building and releasing our libraries and updates for Visual Studio with the updates delivered on NuGet and the Visual Studio Extension Gallery. Keep an eye on our blog to hear about our next set of features.

时间: 2024-10-13 15:39:22

New ASP.NET Features and Fixes in Visual Studio 2015 RC的相关文章

Visual Studio 2015 RC中的ASP.NET新特性和问题修正

(此文章同时发表在本人微信公众号"dotNET每日精华文章") 微软在Build大会上发布了Visual Studio 2015 RC,这也预示着Visual Studio 2015及其背后框架的功能特性已经确定,我们也可以来看看和之前的CTP到底有什么区别. 在Build大会宣布发布Visual Studio 2015 RC之后,微软的Web开发和工具团队在其博客上发表了一篇介绍Visual Studio 2015 RC新特性和问题修正的文章.同VS2015 RC伴随发布的是.NET

visual studio 2015 rc &cordova -hello world

初始环境,用来看看书,电影,上上网的win8,所以一切从头开始. 1,首先还是装visual studio 2015  rc吧,目前只放出在线安装,所以要很长很长时间.不过有新闻说很快要实现中国网友至少8m的带宽. 2,然后才仔细看系统要求: Joyent Node.js enables Visual Studio to integrate with the Apache Cordova Command Line Interface (CLI) and Apache Ripple Emulato

【Asp.Net Core】一、Visual Studio 2015 和 .NET Core 安装

安装 Visual Studio 和 .NET Core 1.安装 Visual Studio Community 2015,选择 Community 下载并执行默认安装.Visual Studio 2015 安装程序首页 2.安装 .NET Core + Visual Studio 工具 ,windows系统的可以从百度网盘下载 创建 Web 应用程序 1.起始页 点击 新建项目(或 文件→新建→项目) 2.选择 左侧 .NET Core (如果没有安装.NET Core + Visual S

《ASP.NET5》Windows 7下Visual Studio 2015安装记录

最近想尝试一下在IBM Bluemix上使用ASP.NET5创建Web应用程序,所以需要在本地搭建ASP.NET5 Web的开发测试环境. 操作系统:Windows 7 x64 VS:Visual Studio Community 2015(含 Update 1) ASP.NET5是什么? ASP.NET 5是一个跨时代的改写,所有的功能和模块都进行了独立拆分,做到了彻底解耦.为了这些改写,微软也是蛮 拼的,几乎把.NET Framwrok全部改写了一遍,形成了一个.NET Core的东西. 在

visual Studio 2015 RC 发布了大家下载体验吧

好久没发文章了,现在开发任务比较紧,今天打开网页看到了VS2015RC出版了大家下载体验一下吧,下面是中文版本和英文版本的下载链接 http://download.microsoft.com/download/9/E/E/9EE66661-54BB-457E-BCAB-FAF34791DB30/vs2015.rc_ent_chs.iso http://download.microsoft.com/download/C/A/A/CAA39018-05E5-49BA-8B24-4FC056EEA39

有感 Visual Studio 2015 RTM 简介 - 八年后回归 Dot Net,终于迎来了 Mvc 时代,盼走了 Web 窗体时代

有感 Visual Studio 2015 RTM 简介 - 八年后回归 Dot Net,终于迎来了 Mvc 时代,盼走了 Web 窗体时代 太阳火神的美丽人生 (http://blog.csdn.net/opengl_es) 本文遵循"署名-非商业用途-保持一致"创作公用协议 转载请保留此句:太阳火神的美丽人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS.Android.Html5.Arduino.pcDuino,否则,出自本博客的文章拒绝转载或再转载,谢谢合作. 关于

Visual Studio 2015官方汇总包括下载和视频

7月20日 23:30 Visual Studio 2015正式版正式发布,作为微软新一代开发利器,在全地球乃至全宇宙乃至全太阳系中最强大 且没有之一的IDE(上述描述来自微博用户评论)跨平台支持成为Visual Studio最新DNA.在智能移动端App开发,支持无论是面向何种智能设备,无论是支持Native应用,还是基于HTML5的混合应用,都可以借助Visual Studio的编码.调试.智能提示等强大功能,帮助程序猿快速开发.一起来认识一下Visual Studio 家族新面孔.    

VS2015--win32工程配置的一些想法之在 Visual Studio 2015 中进行调试的同时分析性能

出处: https://msdn.microsoft.com/zh-cn/magazine/dn973013(en-us).aspx 许多开发商花了绝大多数时间获取应用程序才能正常发挥作用.更少的时间里专注于应用程序的性能.虽然有了很长一段时间分析工具在 Visual Studio 中的,他们是单独的一组学习工具.许多开发人员没有花时间去学习和使用它们的时候会出现性能问题. 这篇文章将介绍 Visual Studio 2015 年新的诊断工具调试器窗口. 它还将描述如何使用它来分析性能作为定期调

Visual Studio 2015简体中文企业版/专业版下载+有效激活密钥

Visual Studio 2015是一个基本完整的开发工具集,它包括了整个软件生命周期中所需要的大部分工具,如UML工具.代码管控工具.集成开发环境(IDE)等等.所写的目标代码适用于微软支持的所有平台,包括Microsoft Windows.Windows Mobile.Windows CE..NET Framework..NET Compact Framework和Microsoft Silverlight 及Windows Phone等. Visual Studio是微软研发的一套开发工