Error MSB3073: The command "chmod +x for chromedriver" exited with code 255 on MAC OS

  Uncategorised

I am getting this error while executing the VS code. This could be permission issue. This is the BuildOutput:

Building solution <ProjectName> (Debug)
Build started 5/3/2021 9:47:37 AM.
__________________________________________________
Project "/<ProjectPath>.csproj" (Build target(s)):

Target ChmodChromeDriver:
    chmod +x "~/.nuget/packages/selenium.webdriver.chromedriver/90.0.4430.2400/build/../driver/mac64/chromedriver"
    /var/folders/pn/c8wb7fb92g13k5231zb_4rm00000gq/T/tmp66da3bfc0c2e4685a6a9e3d6b1ca840f.exec.cmd: line 1: setlocal: command not found
    /var/folders/pn/c8wb7fb92g13k5231zb_4rm00000gq/T/tmp66da3bfc0c2e4685a6a9e3d6b1ca840f.exec.cmd: line 5: exit: %errorlevel%: numeric argument required
    ~/.nuget/packages/selenium.webdriver.chromedriver/90.0.4430.2400/build/Selenium.WebDriver.ChromeDriver.targets(82,5): error MSB3073: The command "chmod +x "~/.nuget/packages/selenium.webdriver.chromedriver/90.0.4430.2400/build/../driver/mac64/chromedriver"" exited with code 255.
Done building target "ChmodChromeDriver" in project "<ProjectName>.csproj" -- FAILED.

Done building project "<ProjectName>.csproj" -- FAILED.

Build FAILED.

~/.nuget/packages/selenium.webdriver.chromedriver/90.0.4430.2400/build/Selenium.WebDriver.ChromeDriver.targets(82,5): error MSB3073: The command "chmod +x "~/.nuget/packages/selenium.webdriver.chromedriver/90.0.4430.2400/build/../driver/mac64/chromedriver"" exited with code 255.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.12

Source: Visual Studio Questions

LEAVE A COMMENT