什么是缓存 AppDataLocalassemblydl3? [英] what is cache AppDataLocalassemblydl3?

查看:32
本文介绍了什么是缓存 AppDataLocalassemblydl3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个程序集,出于某种原因,Windows 开始从这个路径加载:

I have this assembly that for some reason Windows started to load from this path:

C:UsersmariusAppDataLocalassemblydl3MP6PT6BV.2Z4GMRQEZL9.LCB46d762c58cf066ff_7eaecc01X.DLL

这意味着无论我对程序集做了什么更改,它的新副本都不是从其输出文件夹加载的,而是从该缓存文件夹加载的.我尝试删除该文件夹,甚至重新启动 Windows,它再次生成并从那里加载程序集.

That means whatever changes I do to the assembly, the new copy of it isn't loaded from its output folder but from that cached folder. I tried deleting the folder, even restarting Windows, it is generated again and the assembly loaded from there.

那么,我怎样才能摆脱它?我该怎么做才能告诉系统从其输出文件夹而不是从缓存加载 DLL?

So, how can I get rid of it? What do I have to do to tell the system to load the DLL from its output folder and not from the cache?

推荐答案

我找到了问题的答案.这是 Windows 注册表中 HKCUSoftwareMicrosoftFusionDownloadCacheLocation 下指定的 .NET 框架的影子副本"文件夹.卷影复制是 .NET 框架中的一项功能,允许在不卸载应用程序域的情况下更新应用程序域中使用的程序集.MSDN http://msdn.microsoft.com/en-us 中有关此功能的更多信息/library/ms404279.aspx.

I found the answer to my question. That is the "shadow copy" folder for the .NET framework as specified in Windows Registry under HKCUSoftwareMicrosoftFusionDownloadCacheLocation. Shadow copying is a feature in the .NET framework to allow assemblies used in an app domain to be updated without unloading the app domain. More about this feature in MSDN http://msdn.microsoft.com/en-us/library/ms404279.aspx.

通过将 ShadowCopyFiles 属性设置为 true,将我加载程序集的应用程序域配置为卷影复制文件.

The app domain where I was loading the assembly was configured to shadow copy files, by setting the ShadowCopyFiles property to true.

这篇关于什么是缓存 AppDataLocalassemblydl3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆