cef.redist.x64.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. <CefRedist64 Include="$(MSBuildThisFileDirectory)..\CEF\**\*.*" />
  13. </ItemGroup>
  14. <Target Name="CefRedist64CopyResources">
  15. <PropertyGroup>
  16. <CefRedist64TargetDir Condition="'$(CefRedist64TargetDir)' == ''">$(TargetDir)</CefRedist64TargetDir>
  17. </PropertyGroup>
  18. <!--
  19. Cannot gurantee access to the main CefRedist64 ItemGroup here
  20. so we create a duplicate inside our target.
  21. https://github.com/dotnet/project-system/issues/4158
  22. -->
  23. <ItemGroup>
  24. <_CefRedist64 Include="$(MSBuildThisFileDirectory)..\CEF\**\*.*" />
  25. </ItemGroup>
  26. <Message Importance="high" Text="Copying CEF Redist x64 files from $(MSBuildThisFileDirectory)..\CEF to $(CefRedist64TargetDir)" />
  27. <Copy SourceFiles="@(_CefRedist64)" DestinationFiles="@(_CefRedist64->'$(CefRedist64TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
  28. </Target>
  29. </Project>