[英]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.