问题描述
我正在创建一个 Prism 项目模板,该模板效果很好.但在我使用模板创建项目后,一些文件如下所示:
I am creating a Prism Project Template, and the template works great. But after I create a project with the template some of the files look like this:
尽管出现了问题,但一切都很好.
如果我执行 Rebuild All,我会看到解决方案构建时没有错误:
If I do a Rebuild All I see that the solution builds with no errors:
但是重建并没有消除编辑器窗口中显示的错误".(请注意,实际的错误窗口不会显示任何错误.)
But the rebuild all does not get rid of the "errors" that are showing in the editor window. (Note that the actual error window does not show any errors.)
我可以清理、重建、关闭和打开文件,但它不会修复突出显示.
I can clean, rebuild, close and open files, and it will not fix the highlighting.
但是,如果我关闭解决方案并重新打开它,一切都很好:
我的问题:
理想情况下,我的模板或我的 IWizard 应该有办法告诉 ReSharper 重新加载引用以突出显示.
Ideally there would be a way for my template or my IWizard to tell ReSharper to reload the references for the highlighting.
我知道我可以关闭 ReSharper 关闭然后再打开,这会解决它,但我宁愿不这样做
I know I can turn ReSharper off and then on again and that will fix it, but I would rather not do that.
是否有只刷新这些东西的 ReSharper 命令?
Is there a ReSharper command that just refreshes this stuff?
推荐答案
除了重新安装,成功清除缓存的唯一方法是手动从 AppData 目录中删除文件.
Except for reinstalling, the only way to successfully clear the caches is to delete the files manually from your AppData directory.
删除以下位置让您感到悲伤的解决方案文件夹:
Delete the solution folder that's giving you grief in the following locations:
%LOCALAPPDATA%JetBrainsReSharperv7.1SolutionCaches
%LOCALAPPDATA%JetBrainsTransientReSharperPlatformVsXXvXXSolutionCaches
适用于较新版本.
请注意,路径中的版本号可能因安装的 ReSharper 版本而异.
Note that the version numbers in the paths may be different depending on the ReSharper version that is installed.
vXX
和 VsXX
中的 XX
代表任意数字,因为可能有多个文件夹存储解决方案缓存.
The XX
in vXX
and VsXX
represents any number, because there might be multiple folders where the solution cache is stored.
这篇关于如何让 ReSharper 重新评估其装配参考突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!