如何使ReSharper重新评估其装配参考突出显示 [英] How to make ReSharper re-evaluate its assembly reference highlighting
问题描述
我正在创建一个棱镜项目模板,该模板效果很好.但是,在使用模板创建一个项目之后,一些文件如下所示:
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:
尽管有外观,但一切都很好.
如果我执行全部重建,则会看到该解决方案的构建没有错误:
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%\JetBrains\ReSharper\v7.1\SolutionCaches\
%LOCALAPPDATA%\JetBrains\Transient\ReSharperPlatformVsXX\vXX\SolutionCaches\
用于较新的版本.
%LOCALAPPDATA%\JetBrains\ReSharper\v7.1\SolutionCaches\
%LOCALAPPDATA%\JetBrains\Transient\ReSharperPlatformVsXX\vXX\SolutionCaches\
for newer versions.
请注意,路径中的版本号可能会有所不同,具体取决于所安装的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重新评估其装配参考突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!