Skip to content

Commit 445fb9a

Browse files
committed
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.
1 parent 6e4ef21 commit 445fb9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CefSharp.Native.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<Target Name="CefSharpCopyLibs86" BeforeTargets="AfterBuild" Condition="'$(Platform)' == 'x86'">
1212
<Message Importance="high" Text="Copying cef.redist x86 files" />
13-
<Copy SourceFiles="@(CefRedist32)" DestinationFiles="@(CefRedist32->'$(TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
13+
<CallTarget Targets="CefRedist32CopyResources"/>
1414
</Target>
1515

1616
<Target Name="CefSharpCopyLibs64" BeforeTargets="AfterBuild" Condition="'$(Platform)' == 'x64'">
1717
<Message Importance="high" Text="Copying cef.redist x64 files" />
18-
<Copy SourceFiles="@(CefRedist64)" DestinationFiles="@(CefRedist64->'$(TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
18+
<CallTarget Targets="CefRedist64CopyResources"/>
1919
</Target>
2020
</Project>

0 commit comments

Comments
 (0)