加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 动态编译的文件在.NET中使用csc.exe吗?

发布时间:2020-12-16 03:17:25 所属栏目:asp.Net 来源:网络整理
导读:标题问了一切, 动态编译的文件,如.cshtml文件,在.NET中使用csc.exe吗? 我看到了这个问题C# JIT compiling and .NET 但是在Jit’ed之前它还没有完全进入动态文件的编译. 所以你有这个网站https://msdn.microsoft.com/en-us/library/ms366723.aspx. 哪个说:
标题问了一切,

动态编译的文件,如.cshtml文件,在.NET中使用csc.exe吗?

我看到了这个问题C# JIT compiling and .NET

但是在Jit’ed之前它还没有完全进入动态文件的编译.

所以你有这个网站https://msdn.microsoft.com/en-us/library/ms366723.aspx.
哪个说:

By default,ASP.NET Web pages and code files are compiled dynamically
when users first request a resource,such as an ASP.NET page (.aspx
file),from a Web site. After pages and code files have been compiled
the first time,the compiled resources are cached,so that subsequent
requests to the same page are extremely efficient.

我是否理解csc.exe在被JIT进行之前首次请求新资源?

解决方法

简短的回答似乎是肯定的.

>资料来源:https://blogs.msdn.microsoft.com/webdev/2014/05/12/enabling-the-net-compiler-platform-roslyn-in-asp-net-applications/

“Roslyn编译器将被加载到内存中,对于没有预先编译的多个.asx / * .cshtml文件的网站,性能大大提高.但是,新版本具有新的/bin/roslyn/csc.exe文件,这是每个文件执行一次,完全删除上述优化功能“

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读