gpt4 book ai didi

asp.net - 什么是装配实习?

转载 作者:行者123 更新时间:2023-12-02 16:56:12 25 4
gpt4 key购买 nike

什么是装配实习?它的用途是什么?听说是ASP.Net 4.5添加的新功能。谁能解释一下这个功能。和 String interning 一样吗?

最佳答案

摘自《开发 Windows Azure 和 Web 服务》一书:

ASP.NET has a feature called shadow copying that enables assemblies that are used in an application domain to be updated without unloading the AppDomain. Normally, this is required because the Common Language Runtime (CLR) will lock the assemblies so you can’t just copy a new assembly over it. Shadow copying means that the original assembly is copied to a temporary location. The copied assembly is locked, and the original assembly can be updated with a new version.

ASP.NET 4.5 adds a new feature called assembly interning. Because all DLLs are already located in one location (the Temporary ASP.NET Files folder), interning analyzes this folder for duplicate assemblies. Those assemblies are then moved to a special location, and all the original references are replaced with what’s called a symbolic link.

关于asp.net - 什么是装配实习?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30233857/

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