What is ResolveAssemblyReference.cache?

I am trying to figure out what this file (or rather, these files) is for.

I found several web pages that mention this, but the answer to the question is always something like "this file is not your problem" - without a file description. I also do not see the explicit page in MSDN.

The files themselves are quite large, not textual (although they have a lot of text). I assume this is used at compile time, although the modification date is older than any of my object files. This is due to *. Pdb files or generally debugged?

+42
c #
Jan 6 '11 at 19:30
source share
2 answers

This is the file created by the assembly target of the ResolveAssemblyReference. MSDN says this:

Visual Studio tries to accomplish goals with specific names when the project loads. These goals include Compile, ResolveAssemblyReferences, ResolveCOMReferences, GetFrameworkPaths and CopyRunEnvironmentFiles. Visual Studio performs these tasks so that the compiler can be initialized to provide IntelliSense, the debugger can be initialized and the links displayed in Solution Explorer can be enabled. If these goals are missing, the project will load and build correctly, but the development experience in Visual Studio will not be fully functional.

If I interpret this correctly, I would say that the file is used to help the IDE ensure proper IntelliSense status and assembly reference position in node links. This is a fairly expensive operation because there are potentially many assemblies that can be referenced. Therefore, instead of doing this repeatedly, the .cache file can help to do this quickly. Removing is not a problem; it will be recreated when the project is reloaded.

+35
Jan 06 '11 at 20:40
source share
β€” -

exclude the "obj \ debug" folder from your project. Restore it and post ...

0
Aug 31 '16 at 14:44
source share



All Articles