Skip to content

Commit bf26239

Browse files
committed
Updating WebDriver postbuild action to copy 32-bit IE driver
1 parent 32dd1b3 commit bf26239

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

dotnet/src/webdriver/WebDriver.csproj

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -316,30 +316,14 @@
316316
</Target>
317317
-->
318318
<PropertyGroup>
319-
<PostBuildEvent>if %25PROCESSOR_ARCHITECTURE%25 == x86 (
320-
if not defined PROCESSOR_ARCHITEW6432 (
321-
echo Detected 32-bit platform
322-
if exist "$(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" (
323-
echo Found IE 32-bit native binary, copying from Win32 build target $(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe
324-
copy /y "$(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" &gt; NUL
325-
) else (
326-
echo Missing IE 32-bit native binary, copying from Win32 prebuilt location $(ProjectDir)..\..\..\cpp\prebuilt\Win32\Release\IEDriverServer.exe
327-
copy /y "$(ProjectDir)..\..\..\cpp\prebuilt\Win32\Release\IEDriverServer.exe" "$(TargetDir)" &gt; NUL
328-
)
329-
goto end
330-
)
331-
)
332-
333-
echo Detected 64-bit platform
334-
if exist "$(ProjectDir)..\..\..\build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe" (
335-
echo Found IE 64-bit native binary, copying from x64 build target $(ProjectDir)..\..\..\build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe
336-
copy /y "$(ProjectDir)..\..\..\build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" &gt; NUL
319+
<PostBuildEvent>if exist "$(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" (
320+
echo Found IE 32-bit native binary, copying from Win32 build target $(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe
321+
copy /y "$(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" &gt; NUL
337322
) else (
338-
echo Missing IE 64-bit native binary, copying from x64 prebuilt location $(ProjectDir)..\..\..\cpp\prebuilt\x64\Release\IEDriverServer.exe
339-
copy /y "$(ProjectDir)..\..\..\cpp\prebuilt\x64\Release\IEDriverServer.exe" "$(TargetDir)" &gt; NUL
323+
echo Missing IE 32-bit native binary, copying from Win32 prebuilt location $(ProjectDir)..\..\..\cpp\prebuilt\Win32\Release\IEDriverServer.exe
324+
copy /y "$(ProjectDir)..\..\..\cpp\prebuilt\Win32\Release\IEDriverServer.exe" "$(TargetDir)" &gt; NUL
340325
)
341326

342-
:end
343327
if exist "$(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi" (
344328
echo Copying Firefox extension from $(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi
345329
copy /y "$(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi" "$(TargetDir)" &gt; NUL

0 commit comments

Comments
 (0)