Visual Studio 2010“找不到"C:\Users\[USERNAME]\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.vb 每次重启后 [英] Visual Studio 2010 "cannot find" C:\Users\[USERNAME]\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.vb after every reboot

查看:35
本文介绍了Visual Studio 2010“找不到"C:\Users\[USERNAME]\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.vb 每次重启后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将一些 Visual Studio 2010 项目添加到解决方案中,现在每次我重新打开程序时,它们都会停止编译.他们抱怨无法打开模块文件 C:\Users[USERNAME]\AppData\Local\Temp\1.NETFramework,Version=v4.0.AssemblyAttributes.vb.系统找不到指定的文件."我已经检查过,该文件存在并且可以从 VS 编辑器本身访问!

I recently added some of my Visual Studio 2010 projects to a solution, and now every time I reopen the program they stop compiling. They complain "Unable to open module file C:\Users[USERNAME]\AppData\Local\Temp\1.NETFramework,Version=v4.0.AssemblyAttributes.vb. System cannot find the file specified." I've checked, the file exists and is accessible from the VS Editor itself!

我发现的有关此错误的所有信息都建议使用重建来解决该问题.这对我有用,但我宁愿不必在我第一次打开每个解决方案时运行重建!有没有办法避免这个错误?

All the information about this error I've found recommends using rebuild to work around the issue. That works for me, but I would rather not have to run a rebuild the first time I open every one of my solutions! Is there someway to avoid this error?

推荐答案

是的,这是由远程桌面连接引起的问题.RDC(默认情况下)设置为在每次远程登录时创建一个新目录.此外,设置(单独设置)在您注销后删除该目录.真正的解决方案是删除这两个设置,以便它只使用您的标准 Temp 文件夹,而不是在注销时删除文件.

Yes, this is a problem caused by Remote Desktop Connections. RDC is (by default) setup to use create a new directory each time you log in remotely. Also, it's setup (separate setting) to delete that directory once you log off. The real solution is to remove these two settings so that it will just use your standard Temp folder, not deleting the files at logout.

这个问题还有两种解决方法:

There are also two workarounds to this problem:

  1. 解决方法 1:在打开解决方案或重建之前删除解决方案的 .suo 文件.
  2. 解决方法 2:使用全部重建"选项进行修复

注意:设置 RDC 实际上只能在您以管理员身份登录时才能完成,因此,有两种解决方法.

这篇关于Visual Studio 2010“找不到"C:\Users\[USERNAME]\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.vb 每次重启后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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