mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
445fb9ab2d
On Nuget restore the CefRedist32/CefRedist64 properties aren't accessible until after the project has been closed and reopened. (Think clean checkout where the packages folder doesn't exist). The Targets behave different and can be called, so this works around the problem.
20 lines
1.0 KiB
XML
20 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Target Name="AfterBuild">
|
|
<ItemGroup>
|
|
<!-- We only need the .exe and .pdb but I don't know how to express that easily with MSBuild... -->
|
|
<SubProcessFiles Include="$(SolutionDir)\CefSharp.BrowserSubprocess\bin\$(Platform)\$(Configuration)\CefSharp.BrowserSubprocess.*" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(SubProcessFiles)" DestinationFolder="$(TargetDir)" />
|
|
</Target>
|
|
|
|
<Target Name="CefSharpCopyLibs86" BeforeTargets="AfterBuild" Condition="'$(Platform)' == 'x86'">
|
|
<Message Importance="high" Text="Copying cef.redist x86 files" />
|
|
<CallTarget Targets="CefRedist32CopyResources"/>
|
|
</Target>
|
|
|
|
<Target Name="CefSharpCopyLibs64" BeforeTargets="AfterBuild" Condition="'$(Platform)' == 'x64'">
|
|
<Message Importance="high" Text="Copying cef.redist x64 files" />
|
|
<CallTarget Targets="CefRedist64CopyResources"/>
|
|
</Target>
|
|
</Project> |