什么是 ResolveAssemblyReference.cache?
ResolveAssemblyReference.cache
文件的用途是什么?是否需要签入?
What is the file ResolveAssemblyReference.cache
used for and does it need to be checked in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它是由 ResolveAssemblyReference 构建目标生成的文件。 MSDN对此有这样的说法:
如果我的解释正确,我会说该文件用于帮助 IDE 在“引用”节点中提供正确的 IntelliSense 和程序集引用状态。这是一个相当昂贵的操作,因为可能有很多可以引用的程序集。因此,.cache 文件可以帮助您快速完成此操作,而不是重复执行此操作。删除它不是问题,重新加载项目时它将重新创建。
It is a file produced by the ResolveAssemblyReference build target. MSDN has this to say about it:
If I interpret this correctly, I'd say that the file is used to help the IDE provide proper IntelliSense and assembly reference status in the References node. It is a fairly expensive operation since there are potentially a lot of assemblies that can be referenced. So instead of doing this repeatedly, the .cache file can help make this quick. Deleting it isn't an issue, it will be recreated when the project is reloaded.
它不需要签入,因此要将其从 git 中排除,请添加“obj\debug”的 obj 文件夹,以便在 git 进程中排除它,从而正确排除它。
It is not needed to be checked in, so to exclude it from git, add the
obj
folder, for "obj\debug", to be excluded during git processes which will exclude it properly.