VS2015 MVC 无编译经验

VS2015 MVC No compile experience

据我了解,使用新的编译器可以 运行 编写代码而无需重新启动 ASP.NET MVC 项目,例如免编译体验。

例如,更改模型或控制器需要重新启动整个项目,这在 VS2013 中可能需要相当长的时间(尤其是使用 Code First)。

这基本上是编辑并继续 ASP.NET,现在可以在 VS2015 中使用吗?我试过 CTP5 但无法正常工作。

编辑:实际问题

VS2015 是否或将支持 ASP.NET MVC 的编辑并继续或类似体验(不必为 model/controller 更改重新启动)?

Does VS2015, or will it, support edit and continue or a similar experience (not having to restart for model/controller changes) for ASP.NET MVC?

Visual Studio Edit and Continue 可用并适用于 ASP.Net 一直到 2010 版都有限制(IIS Express 等...)。

Is this, basically edit&continue for ASP.NET

没有。 Scott Hanselman 在这篇博客中对 vNext 中的所有新功能做了非常详细的解释 post Introducing ASP.NET vNext.

摘录:

One of the great aspects of environments like node or rails is that they are "no compile." Just change some code and hit refresh. With the next version of ASP.NET you get the power and throughput of the .NET runtime plus the "Roslyn" compiler-as-a-service for a "no-compile compile." That means means during development time you can just change your C# classes and hit Refresh in the browser. It's the power of .NET with the dynamism of a refresh-and-go development experience.

NOTE: This isn't ASP.NET Websites, or Razor View compilation - this is the whole thing, compiled in memory. You can use Visual Studio for development, or text editors like Sublime, or freakin' Notepad. (Of course, if you want assemblies on disk, you can do that too.)

See my web app’s bin folder in the screenshot below? There’s no assemblies in there because the assemblies never exist on the disk. It’s actually faster and easier to have the compiler do all the work in memory.