目标进程退出时未引发CoreCLR启动事件-尝试在Visual Studio中运行基于硒的测试时输出错误

问题描述 投票:0回答:1

[当我尝试在Visual Studio中运行自动化测试时,我似乎收到以下错误。我正在使用的测试提供程序是SpecFlow.NUnit。有人有想法吗?我感到难过...error

错误文本:

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[19308] testhost.x86.exe: Program Trace' has exited with code 0 (0x0).
The program '[19308] testhost.x86.exe' has exited with code -2147450730 (0x80008096).
  • 我拥有Visual Studio的最新2019版本
  • 目标框架是已安装的.NET Core 2.1

我已安装以下NuGet软件包和版本specflow NuGet PackagesNUnit NuGet packages

c# visual-studio nunit specflow
1个回答
0
投票

Stefan Zivkovic的评论也帮助了我。我想把这个数字放在一个答案中,给他充分的印象,他的建议也帮助了我。

此外,为了设置您的测试体系结构:“测试”菜单选项卡-> AnyCPU项目的过程体系结构-> x64

© www.soinside.com 2019 - 2024. All rights reserved.