Visual Studio 2017 Winforms Designer缓存在哪里? [英] Where is the Visual Studio 2017 Winforms Designer cache?

查看:182
本文介绍了Visual Studio 2017 Winforms Designer缓存在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试打开我的一个窗体时,我从Visual Studio Designer中收到一些烦人的错误(即使程序集y显然包含类型x,也无法从程序集y中加载类型x;该项目可以正常运行.)在我看来,Visual Studio Designer缓存问题.我环顾四周,似乎Visual Studio Designer使用了ShadowCache,通常可在

I'm getting some annoying errors from Visual Studio Designer when trying to open one of my forms (Could not load type x from assembly y, even though assembly y clearly contains type x; the project builds and runs fine). It looks like Visual Studio Designer cache issue to me. I looked around and it seems like Visual Studio Designer uses a ShadowCache, normally found at

C:\ Users \%UserName%\ AppData \ Local \ Microsoft \ VisualStudio \ 15.0_6d397e1a \ Designer \ ShadowCache

C:\Users\%UserName%\AppData\Local\Microsoft\VisualStudio\15.0_6d397e1a\Designer\ShadowCache

但是,该文件夹为空.这向我建议必须存在其他缓存位置,因为我正在使用设计器进行其他操作,因此设计器缓存位置中至少应存在某些内容...

However, that folder is empty. This suggests to me that there must be some other cache location, since I am using designer for some other things, there should at least be something in the designer cache location...

推荐答案

要清理Windows Forms Designer项目程序集,您需要删除ProjectAssemblies文件夹的子文件夹,该文件夹位于%userprofile%\appdata\local\Microsoft\VisualStudio\中的一个文件夹下,具体取决于您的文件夹. Visual Studio版本和版本.

To clean windows forms designer project assemblies, you need to delete subforlders of ProjectAssemblies folder which is located in %userprofile%\appdata\local\Microsoft\VisualStudio\ under one of the folders depending to your visual studio version and edition.

以我为例:

%userprofile%\appdata\local\Microsoft\VisualStudio\15.0_a26f780e\ProjectAssemblies

如果您在文件夹中查看,则会看到包含项目程序集的子文件夹.

If you look in the folder, you see subfolders containing assemblies of your projects.

这篇关于Visual Studio 2017 Winforms Designer缓存在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆