File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
CefSharp.WinForms.Example Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 125125 </ProjectReference >
126126 </ItemGroup >
127127 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
128- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
129- Other similar extension points exist, see Microsoft.Common.targets.
130- <Target Name="BeforeBuild">
131- </Target>
128+ <PropertyGroup >
129+ <UnmanagedPlatform >x64</UnmanagedPlatform >
130+ <UnmanagedPlatform Condition =" '$(Platform)'=='x86'" >Win32</UnmanagedPlatform >
131+ </PropertyGroup >
132+ <!-- TODO: Extract this to an includable .props file, which we can then bundle with the CefSharp.Wpf NuGet package. -->
132133 <Target Name =" AfterBuild" >
134+ <ItemGroup >
135+ <CefBinaries Include =" $(SolutionDir)CEF\$(UnmanagedPlatform)\*.*" />
136+ <LocaleFiles Include =" $(SolutionDir)CEF\locales\*.*" />
137+ <!-- We only need the .exe and .pdb but I don't know how to express that easily with MSBuild... -->
138+ <SubProcessFiles Include =" $(SolutionDir)\CefSharp.BrowserSubprocess\bin\$(Platform)\$(Configuration)\CefSharp.BrowserSubprocess.*" />
139+ </ItemGroup >
140+ <Copy SourceFiles =" @(CefBinaries)" DestinationFolder =" $(TargetDir)" />
141+ <Copy SourceFiles =" @(LocaleFiles)" DestinationFolder =" $(TargetDir)locales" />
142+ <Copy SourceFiles =" @(SubProcessFiles)" DestinationFolder =" $(TargetDir)" />
133143 </Target >
134- -->
135144</Project >
You can’t perform that action at this time.
0 commit comments