Skip to content

Commit 43e61fe

Browse files
committed
Nuget - Include <None/> entries for x86 before the x64 (using the property with both means the x64 are imported first)
It appears that VS is ignoring the HintPath and using the x64 binary even though we tell it to use the x86 This hopefully resolves #2276
1 parent 3a6af99 commit 43e61fe

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

NuGet/CefSharp.Common.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@
5555
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link>
5656
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5757
</None>
58-
<None Include="@(CefSharpCommonBinariesAnyCPU)">
59-
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
58+
<None Include="@(CefSharpCommonBinaries32)">
59+
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link>
60+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
61+
</None>
62+
<None Include="@(CefSharpCommonBinaries64)">
63+
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link>
6064
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6165
</None>
6266
</ItemGroup>

NuGet/CefSharp.OffScreen.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@
2121
<Choose>
2222
<When Condition="'$(Platform)' == 'AnyCPU'">
2323
<ItemGroup>
24-
<None Include="@(CefSharpOffscreenBinariesAnyCPU)">
25-
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
24+
<None Include="@(CefSharpOffScreenBinaries32)">
25+
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link>
26+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27+
</None>
28+
<None Include="@(CefSharpOffScreenBinaries64)">
29+
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link>
2630
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2731
</None>
2832
</ItemGroup>

NuGet/CefSharp.WinForms.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@
2121
<Choose>
2222
<When Condition="'$(Platform)' == 'AnyCPU'">
2323
<ItemGroup>
24-
<None Include="@(CefSharpWinFormsBinariesAnyCPU)">
25-
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
24+
<None Include="@(CefSharpWinFormsBinaries32)">
25+
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link>
26+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27+
</None>
28+
<None Include="@(CefSharpWinFormsBinaries64)">
29+
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link>
2630
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2731
</None>
2832
</ItemGroup>

NuGet/CefSharp.Wpf.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@
2121
<Choose>
2222
<When Condition="'$(Platform)' == 'AnyCPU'">
2323
<ItemGroup>
24-
<None Include="@(CefSharpWpfBinariesAnyCPU)">
25-
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
24+
<None Include="@(CefSharpWpfBinaries32)">
25+
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link>
26+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27+
</None>
28+
<None Include="@(CefSharpWpfBinaries64)">
29+
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link>
2630
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2731
</None>
2832
</ItemGroup>

0 commit comments

Comments
 (0)