Skip to content

Commit 74a2053

Browse files
committed
[dotnet] Help old .net framework copy selenium manager to output
1 parent ffa8030 commit 74a2053

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotnet/src/webdriver/assets/nuget/build/netstandard2.0/Selenium.WebDriver.targets

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

4-
<!-- Legacy packages.config support -->
5-
<ItemGroup Condition="'$(UsingMicrosoftNETSdk)' != 'true'">
4+
<!-- Only run if the consumer did NOT set a RID (so NuGet won't select runtimes assets),
5+
and only for .NET Framework projects where this problem is common. -->
6+
<ItemGroup Condition="'$(RuntimeIdentifier)' == '' and '$(TargetFrameworkIdentifier)' == '.NETFramework'">
67
<Content Include="$(MSBuildThisFileDirectory)..\..\runtimes\win\native\selenium-manager.exe">
78
<Link>runtimes\win\native\%(Filename)%(Extension)</Link>
89
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)