gpt4 book ai didi

c# - VS2015 MVC 无编译经验

转载 作者:行者123 更新时间:2023-11-30 14:53:56 26 4
gpt4 key购买 nike

据我了解,使用新的编译器可以在不重新启动 ASP.NET MVC 项目的情况下运行代码,例如免编译体验。

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

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

编辑:实际问题

VS2015 是否或将支持 ASP.NET MVC 的编辑并继续或类似体验(无需重新启动模型/ 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 中的所有新功能做了非常详细的解释 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.

关于c# - VS2015 MVC 无编译经验,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28098923/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com