cef.redist.x86.props 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <!--
  4. Files are no longer copied as part of this targets file.
  5. For projects other than CefSharp define a target to copy the files.
  6. Checkout the CefSharp.Common.targets file for an example
  7. -->
  8. <!--
  9. Using wildcard matching as per https://stackoverflow.com/a/17252671
  10. -->
  11. <ItemGroup>
  12. <CefRedist32 Include="$(MSBuildThisFileDirectory)..\CEF\**\*.*" />
  13. </ItemGroup>
  14. <Target Name="CefRedist32CopyResources">
  15. <PropertyGroup>
  16. <CefRedist32TargetDir Condition="'$(CefRedist32TargetDir)' == ''">$(TargetDir)</CefRedist32TargetDir>
  17. </PropertyGroup>
  18. <!--
  19. Cannot gurantee access to the main CefRedist32 ItemGroup here
  20. so we create a duplicate inside our target.
  21. https://github.com/dotnet/project-system/issues/4158
  22. -->
  23. <ItemGroup>
  24. <_CefRedist32 Include="$(MSBuildThisFileDirectory)..\CEF\**\*.*" />
  25. </ItemGroup>
  26. <Message Importance="high" Text="Copying CEF Redist x86 files from $(MSBuildThisFileDirectory)..\CEF to $(CefRedist32TargetDir)" />
  27. <Copy SourceFiles="@(_CefRedist32)" DestinationFiles="@(_CefRedist32->'$(CefRedist32TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
  28. </Target>
  29. </Project>