安装Visual Studio 2010 SP1后无法运行单元测试 [英] Can't run the unit tests afters installing Visual Studio 2010 SP1

查看:91
本文介绍了安装Visual Studio 2010 SP1后无法运行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Windows 7 64位操作系统上使用Visual Studio2010.为Visual Studio 2010安装Service Pack 1后,在打开测试视图时出现错误:

We use Visual Studio 2010 on Windows 7 64 bit operating system. After installing the service pack 1 for Visual Studio 2010, when opening the Test View, we get the error:

加载< UnitTestTest.dll>时出错:无法加载文件或程序集'Microsoft.VisualStudio.Platform.AppDomainManager,版本= 10.0.0.0,Culture =中性,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一.未指定的错误(来自HRESULT的异常: 0x80004005(E_FAIL))

Error loading <UnitTestTest.dll>: Could not load file or assembly 'Microsoft.VisualStudio.Platform.AppDomainManager, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

where < UnitTestTest.dll>是一个单元测试程序集.对于此解决方案中包含的某些测试程序集,将报告此消息,而其他测试程序集则已正确加载,并且单元测试在测试视图"中可见并且可以执行.
where <UnitTestTest.dll> is a unit test assembly. This message is reported for some tests assemblies included in the solution, while other tests assemblies are properly loaded and the unit tests are visible in the Test View and can be executed.

推荐答案

您好,Sergiu,

感谢您的帖子.

根据问题的描述,您升级Service Pack 1后无法打开测试视图".

首先,我建议您检查文件夹"; C:\ Windows \ Microsoft.NET \ assembly \ GAC_MSIL”查找名为"Microsoft.VisualStudio.Platform.AppDomainManager"的文档. 如果您有此文件夹,则该文件可能已损坏.如果此文件不存在,则可能是由于缺少此文件夹和相应的文件而引起的.

First, I recommend you check the folder “C:\Windows\Microsoft.NET\assembly\GAC_MSIL” to find a document named “Microsoft.VisualStudio.Platform.AppDomainManager”. If you have this folder, this file was probably corrupted. If this file does not exist, the possible cause of your problem is lack of this folder and corresponding files.

第二,我也建议您重新安装该服务Pack1.您是否卸载了Service Pack 1?如果已安装,则必须将Visual Studio 2010重新安装到 恢复某些组件. Visual Studio 2010 Service Pack 1升级了Visual Studio 2010原始发行版的某些组件.如果您卸载Service Pack 1,则其中的某些组件将从计算机中完全删除并且不会降级 还原为原始版本.此外,必须重新安装Visual Studio 2010,然后才能再次安装SP1.重新安装Visual Studio 2010后,请从此处下载ISO文件: http://go. microsoft.com/fwlink/?LinkId=210710

Second, I also recommend you reinstall the Service Pack 1. Have you uninstalled Service Pack 1? If you have, Visual Studio 2010 must be reinstalled to restore certain components. Visual Studio 2010 Service Pack 1 upgrades some components of the Visual Studio 2010 original release version. If you uninstall Service Pack 1, some of these components are removed completely from the machine and not downgraded to their original versions. Moreover, Visual Studio 2010 must be reinstalled before SP1 can be installed again. After you have reinstalled Visual Studio 2010, download the ISO file from here: http://go.microsoft.com/fwlink/?LinkId=210710

检查是否有防病毒软件或反间谍软件应用程序正在运行.确保在安装过程中将其关闭.

使用管理员权限运行安装文件:右键点击安装程序>以管理员身份运行.

如果我误解了任何内容,请放心让我知道.

最好的问候,


这篇关于安装Visual Studio 2010 SP1后无法运行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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