简体   繁体   English

Selenium.WebDriver.ChromeDriver - chromedriver.exe没有为netcore2.2目标框架发布

[英]Selenium.WebDriver.ChromeDriver - chromedriver.exe is not being publishing for netcore2.2 target framework

我安装了nuget包--Selenium.WebDriver.ChromeDriver 2.46.0 ..当我发布(通过dotnet发布.Net CLI命令).csproject(目标框架 - netcore2.2)时,chromedriver.exe没有在输出/发布文件夹上复制..有人能帮助我吗?

From the project owner github page: 从项目所有者github页面:

"chromedriver(.exe)" isn't included in published files on default configuration. “chromedriver(。exe)”未包含在默认配置的已发布文件中。 This behavior is by design. 此行为是设计使然。

If you want to include "chromedriver(.exe)" into published files, please define _PUBLISH_CHROMEDRIVER compilation symbol. 如果要将“chromedriver(.exe)”包含在已发布的文件中,请定义_PUBLISH_CHROMEDRIVER编译符号。

在此输入图像描述

OR 要么

Define PublishChromeDriver property with value to "true" in MSBuild file (.csproj, .vbproj, etc...) to publish the driver file. 在MSBuild文件(.csproj,.vbproj等等) PublishChromeDriver属性定义为值为“true”以发布驱动程序文件。

<Project ...>
    ...
    <PropertyGroup>
      ...
      <PublishChromeDriver>true</PublishChromeDriver>
      ...
    </PropertyGroup>
...
</Project>

Note: MSBuild property always override the condition of define _PUBLISH_CHROMEDRIVER compilation symbol 注意:MSBuild属性始终覆盖定义_PUBLISH_CHROMEDRIVER编译符号的条件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在不成功 selenium ChromeDriver 创建期间 chromedriver.exe 没有被处理 - During unsuccessful selenium ChromeDriver creation chromedriver.exe is not being disposed Selenium.WebDriver.ChromeDriver 启动缓慢 - 为什么? - Selenium.WebDriver.ChromeDriver slow to launch - why? WebDriver.ChromeDriver.win32 与 Selenium.WebDriver.ChromeDriver - WebDriver.ChromeDriver.win32 vs Selenium.WebDriver.ChromeDriver 在哪里放chromedriver.exe以发布Selenium WebDriver C# - Where to put chromedriver.exe for release of Selenium WebDriver C# Selenium找不到chromedriver.exe - Selenium can't find chromedriver.exe chromedriver.exe 未在 selenium c# 中关闭 - chromedriver.exe not closing in selenium c# 在 Selenium.WebDriver.ChromeDriver NuGet package 中找不到更新的 Chrome 浏览器 - Updated Chrome Browser not found in Selenium.WebDriver.ChromeDriver NuGet package 如何识别chromedriver.exe? - How to identify chromedriver.exe? c# OpenQA.Selenium.WebDriverException:对于 chromedriver.exe(nuget pkg 版本 2.46.0) - c# OpenQA.Selenium.WebDriverException : for chromedriver.exe (nuget pkg version 2.46.0) 如果无法实例化修复 Session 未创建,请尝试 Selenium 下载使用 C# 中的最新 chromedriver.exe - Try Selenium Download use of Latest chromedriver.exe in C# if it Fails to Instanciate to fix Session not created Exception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM