all groups > dotnet clr > august 2003 >
You're in the

dotnet clr

group:

Need a way to disable the download cache



Need a way to disable the download cache Bill Menees
8/29/2003 9:21:24 AM
dotnet clr: Is there any way to completely disable the download cache? I'm a developer
doing a lot of COM interop, and the download cache makes my life hell. It
behaves better in .NET 1.1 than it did in .NET 1.0, but it still uses old
cached versions occasionally when there are newer versions on disk. This
has caused me and my team countless hours of debugging frustration because
it seems random as to when it will use a cached version instead of a newer
version.

I'm not pulling files from other machines. All the files are local with a
codebase like "file://c:\blah". The loader should totally be able to see
that there's a newer version on disk, and it should always use the latest
version. It also shouldn't ever put multiple versions of the same file in
the download cache when they have the same name, version, culture, and key
token. I've ended up with 15 different versions of the same file in the DL
cache with identical display names.

I just want a way to turn this annoying download cache off on my machine.
This affects me daily, and it affects others on my development team as well.
The DL cache may be fine for a production system, but it stinks for
development where interfaces are still changing.

I originally hoped that DEVPATH would help, but it just caused other
problems. DEVPATH is too much of an override. I just want a way to skip
the download cache. Everything else about the .NET loader should continue
to function normally.

Thanks,

Bill Menees


Re: Need a way to disable the download cache Dave
8/29/2003 5:12:34 PM
You could write a batch file that executes after each build that clears the
cache. Add it to the postbuild step.

[quoted text, click to view]

RE: Need a way to disable the download cache jeffschw NO[at]SPAM online.microsoft.com (
8/29/2003 9:29:52 PM
I am not aware of a way to disable the download cache, but you can clear it
using "gacutil /cdl".

Here is a link that will describe this command line option:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpgrfglobalassemblycacheutilitygacutilexe.asp

A possible way to make developing easier in this case is to delete the
cache in between each new version. This can be a hassle, but luckily it
can be scripted and just part of your normal load scenario.

Hope that this helps.

Jeff Schwartz [MSFT]

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
AddThis Social Bookmark Button