Skip to content

Commit 007cb53

Browse files
authored
Improve the check for RuntimeIdentifier to also allow non-portable RIDs like "win7-x64" or "win10-x86". (#3295)
Issue: #3197
1 parent f1daac7 commit 007cb53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NuGet/PackageReference/CefSharp.Common.NETCore.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Choose>
4-
<When Condition="'$(RuntimeIdentifier)' == 'win-x64'">
4+
<When Condition="$(RuntimeIdentifier.StartsWith('win')) and $(RuntimeIdentifier.Contains('-x64'))">
55
<ItemGroup>
66
<Content Include="@(CefRuntimeWin64Locales)">
77
<Link>locales\%(RecursiveDir)%(FileName)%(Extension)</Link>
@@ -17,7 +17,7 @@
1717
</Content>
1818
</ItemGroup>
1919
</When>
20-
<When Condition="'$(RuntimeIdentifier)' == 'win-x86'">
20+
<When Condition="$(RuntimeIdentifier.StartsWith('win')) and $(RuntimeIdentifier.Contains('-x86'))">
2121
<ItemGroup>
2222
<Content Include="@(CefRuntimeWin32Locales)">
2323
<Link>locales\%(RecursiveDir)%(FileName)%(Extension)</Link>
@@ -62,7 +62,7 @@
6262
<Visible>false</Visible>
6363
</Content>
6464
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\win-x86\lib\netcoreapp3.1\Ijwhost.dll">
65-
<Link>runtimes\win-x64\native\%(RecursiveDir)%(FileName)%(Extension)</Link>
65+
<Link>runtimes\win-x86\native\%(RecursiveDir)%(FileName)%(Extension)</Link>
6666
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6767
<PublishState>Included</PublishState>
6868
<Visible>false</Visible>

0 commit comments

Comments
 (0)