什么是缓存AppData \ Local \ assembly \ dl3?

时间:2021-10-09 05:54:44

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

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

C:\Users\marius\AppData\Local\assembly\dl3\MP6PT6BV.2Z4\GMRQEZL9.LCB\46d762c5\8cf066ff_7eaecc01\X.DLL

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.

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

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?

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

1 个解决方案

#1


22  

I found the answer to my question. That is the "shadow copy" folder for the .NET framework as specified in Windows Registry under HKCU\Software\Microsoft\Fusion\DownloadCacheLocation. 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.

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

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

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

#1


22  

I found the answer to my question. That is the "shadow copy" folder for the .NET framework as specified in Windows Registry under HKCU\Software\Microsoft\Fusion\DownloadCacheLocation. 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.

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

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

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