Files
cefsharp/CefSharp.Native.props
T
Alex Maitland 70a7ba1536 Example/Test - Use the new CefRedist32CopyResources/CefRedist64CopyResources targets
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.
2021-07-24 11:20:43 +10:00

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>