visual-studio 用户 AppData 文件夹中的 ReflectedSchemas 文件夹 (Visual Studio)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/878345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ReflectedSchemas folder in the user's AppData folder (Visual Studio)
提问by splattne
Today I ran WinDirStatto check what is filling up my harddisk. I was surprised to see that this folder contains 4.6 GB (!):
今天我运行WinDirStat来检查是什么填满了我的硬盘。我很惊讶地看到这个文件夹包含 4.6 GB (!):
C:\Users\...\AppData\Roaming\Microsoft\VisualStudio.0\ReflectedSchemas
What is the purpose of this folder and the files it contains? Is there a way to get rid of these files in a safe way?
此文件夹及其包含的文件的用途是什么?有没有办法以安全的方式摆脱这些文件?
Thanks!
谢谢!
采纳答案by dampee
I've tried to empty the folder completely, and have no problems found since i've done. When launching a project in VS, a new schema was created.
我试图完全清空文件夹,自从我完成以来没有发现任何问题。在 VS 中启动项目时,会创建一个新模式。
Edit: you can also move the folder and put it back when you believe you screwed things up...
编辑:您也可以移动文件夹并在您认为自己搞砸了时将其放回原处...
回答by Michael La Voie
This drives me crazy and hopefully it will be fixed in VS 2010; however, I found another solution to this problem.
这让我发疯,希望它会在 VS 2010 中得到修复;但是,我找到了另一个解决此问题的方法。
My "fix" is to use the "Junction" tool to map the folder to another drive. If you're like me and have a second drive, then you can use window's Junction tool to create something like a symbolic link to map the folder to another drive.
我的“修复”是使用“Junction”工具将文件夹映射到另一个驱动器。如果您像我一样拥有第二个驱动器,那么您可以使用 window 的 Junction 工具创建类似符号链接的东西,以将文件夹映射到另一个驱动器。
Best of all, you no longer need to use the command line. This freeware tool works great: Junction Link Magic.
最重要的是,您不再需要使用命令行。这个免费软件工具很好用:Junction Link Magic。
回答by palswim
These files caused problems for me because I was using Windows' Roaming Profiles feature, so I symlinked (created symbolic links for) them to the Local AppData folder:
这些文件给我带来了问题,因为我使用的是 Windows 的漫游配置文件功能,所以我将它们符号链接(为其创建符号链接)到本地 AppData 文件夹:
cd %APPDATA%\Microsoft\VisualStudio.0
mklink /D ReflectedSchemas ..\..\..\..\Local\Microsoft\VisualStudio.0\ReflectedSchemas
mklink /D ReflectedTypeLibs ..\..\..\..\Local\Microsoft\VisualStudio.0\ReflectedTypeLibs
If your needs/problems regarding these files differ from mine, you can link them to a different folder, even on a different partition. (You can use the /Jswitch instead of /D, and in this case, it probably won't matter, but it does help to know the differences between the different typesof links.)
如果您对这些文件的需求/问题与我的不同,您可以将它们链接到不同的文件夹,即使在不同的分区上。(您可以使用/Jswitch 而不是/D,在这种情况下,这可能无关紧要,但它有助于了解不同类型链接之间的差异。)

