Vstest.Console.exe无法执行 [英] Vstest.Console.exe failing to execute
问题描述
我想运行C#脚本(我有一个已编译的DLL)而没有在自动化测试的机器上安装Visual Studio。我已经为Visual Studio 2015安装了代理商&尝试使用以下指定的命令执行它 -
I want to run the C# script (i have a compiled DLL) without having Visual Studio installed on a machine for Automation testing. I have installed Agents for Visual Studio 2015 & trying to execute it with the below specified command -
Vstest.Console.exe xsrffs.DLL
Vstest.Console.exe xsrffs.DLL
我看到以下错误。
I am seeing the below error.
错误消息:
单元测试适配器引发异常:
$
以下程序包无法加载:PublicAssemblies\Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll。
无法加载文件或汇编'file:/// C:\Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \IDE \CommonExtensions\Microsoft\TestWindow \ TestResults\vinay_DESKTOP-AQNFSDG 2017-02- 24 15_53_57\Out\PublicAssemblies\Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll'
或其中一个依赖项。系统找不到指定的文件..
Error Message:
Unit Test Adapter threw exception:
The following package failed to load: PublicAssemblies\Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll.
Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\TestResults\vinay_DESKTOP-AQNFSDG 2017-02-24 15_53_57\Out\PublicAssemblies\Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll'
or one of its dependencies. The system cannot find the file specified..
有人可以帮我解决这个问题吗?
Can someone please help me out in fixing this issue?
推荐答案
据我所知,Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll只能用于在Visual Studio中。
As far as I am aware Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll was meant to only be used from within Visual Studio.
它用于单元测试,你使用Test>运行的单元测试。运行菜单项。
It is used for unit testing, the one that you run with the Test > Run menu item.
以便回答您的问题:我认为您需要使用Visual Studio。
So as an answer to your question: I think you will need to use Visual Studio.
这篇关于Vstest.Console.exe无法执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!