简体   繁体   English

什么是ASP.NET vNext?

[英]What is ASP.NET vNext?

Can anybody tell me what is ASP.NET vNext? 谁能告诉我什么是ASP.NET vNext? Every new version on .Net is something like .NET 1.0, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0 then why this version is not something like ASP.NET 6.0? .Net上的每个新版本都是.NET 1.0,.NET 2.0,.NET 3.0,.NET 3.5,.NET 4.0,那么为什么这个版本不像ASP.NET 6.0?

vNext is just the name given to product in the pre-release mode, like c# vNext which will apparently be released as C# 6.0, maybe ASP.NET vNext will have a numbering when it releases. vNext只是预发布模式下产品的名称,比如c#vNext,显然会以C#6.0的形式发布,也许ASP.NET vNext在发布时会有编号。

What is ASP.NET vNext? 什么是ASP.NET vNext?

Microsoft ASP.NET vNext is a smaller and efficient framework as a result of rebuilding the libraries from ground up. Microsoft ASP.NET vNext是一个更小,更高效的框架,是从头开始重建库的结果。

What's new in vNext vNext中有什么新功能

  • Cloud-optimized versions of MVC, Web API, Web Pages, SignalR, and Entity Framework. 云优化版本的MVC,Web API,Web页面,SignalR和实体框架。

  • MVC, Web API, and Web Pages will be merged into one framework, called MVC 6. MVC,Web API和Web页面将合并到一个名为MVC 6的框架中。

  • MVC 6 has no dependency on System.Web. MVC 6不依赖于System.Web。 The result is a leaner framework, with faster startup time and lower memory consumption. 结果是更精简的框架,更快的启动时间和更低的内存消耗。

  • vNext is host agnostic. vNext是主机不可知的。 You can host your app in IIS, or self-host in a custom process. 您可以在IIS中托管应用程序,也可以在自定义进程中托管自托管应用程序。

  • Dependency injection is built into the framework. 依赖注入内置于框架中。 Use your preferred IoC container to register dependencies. 使用首选的IoC容器注册依赖项。

  • vNext uses the Roslyn compiler to compile code dynamically. vNext使用Roslyn编译器动态编译代码。 You will be able to edit a code file, refresh the browser, and see the changes without rebuilding the project. 您将能够编辑代码文件,刷新浏览器,并在不重建项目的情况下查看更改。

  • vNext is open source and cross platform. vNext是开源和跨平台的。

More information: 更多信息:

ASP.NET vNext is the next version of ASP.NET, but it hasn't shipped yet, so it is not an official version. ASP.NET vNext是ASP.NET的下一个版本,但尚未发布,因此它不是正式版本。 "vNext" is just a working title. “vNext”只是一个有效的标题。

ASP.NET vNext was the code-name for the next generation of ASP.NET, whose official name is ASP.NET 5. As of now ASP.NET 5 is not yet finished and documentation about can be found at http://asp.net/vnext . ASP.NET vNext是下一代ASP.NET的代号,其官方名称是ASP.NET 5.截至目前,ASP.NET 5还没有完成,文档可以在http:// asp找到.net / vnext

ASP.NET 5 is not just an evolution of the previous version(s), it is rebuilt from the ground. ASP.NET 5不仅是以前版本的演变,而是从地面重建。 Existing ASP.NET applications will run on ASP.NET 5 without modifications, but to take advantage of the new features, such applications will have to be ported to the new version. 现有的ASP.NET应用程序将在ASP.NET 5上运行而无需修改,但为了利用这些新功能,这些应用程序必须移植到新版本。

Here's a little excerpt of what http://asp.net has to say about ASP.NET 5: 这里有一些关于http://asp.net有关ASP.NET 5的内容的摘录:


ASP.NET 5 is a lean .NET stack for building modern web apps. ASP.NET 5是用于构建现代Web应用程序的精简.NET堆栈。 We built it from the ground up to provide an optimized development framework for apps that are either deployed to the cloud or run on-premises. 我们从头开始构建它,为部署到云或在本地运行的应用程序提供优化的开发框架。 It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. 它由模块化组件组成,开销最小,因此您可以在构建解决方案时保持灵活性。

ASP.NET 5 includes the following features: ASP.NET 5包括以下功能:

  • New flexible and cross-platform runtime 新的灵活和跨平台运行时
  • New modular HTTP request pipeline 新的模块化HTTP请求管道
  • Cloud-ready environment configuration 云就绪环境配置
  • Unified programming model that combines MVC, Web API, and Web Pages 结合了MVC,Web API和Web页面的统一编程模型
  • Ability to see changes without re-building the project 能够在不重新构建项目的情况下查看更改
  • Side-by-side versioning of the .NET Framework .NET Framework的并行版本控制
  • Ability to self-host or host on IIS 能够在IIS上自托管或托管
  • New tools in Visual Studio 2015 Visual Studio 2015中的新工具
  • Open source in GitHub 在GitHub中开源

The changes we made for ASP.NET 5 were based on customer requests and feedback. 我们为ASP.NET 5所做的更改基于客户请求和反馈。 These changes simplify development, hosting, and maintenance, and are targeted to modern web apps. 这些更改简化了开发,托管和维护,并针对现代Web应用程序。

Your legacy apps will run on the new version of the ASP.NET without any modifications. 您的旧版应用程序将在新版本的ASP.NET上运行,无需任何修改。 However, to take advantage of the new features in ASP.NET 5, you will need to port your existing code to the new framework. 但是,要利用ASP.NET 5中的新功能,您需要将现有代码移植到新框架。 You will find many similarities between ASP.NET 5 and earlier versions of ASP.NET, so porting code involves fixing particular issues rather than re-writing the app. 您会发现ASP.NET 5和早期版本的ASP.NET之间存在许多相似之处,因此移植代码涉及修复特定问题而不是重写应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM