Commit Graph

130 Commits

Author SHA1 Message Date
Alex Maitland 70de3a6d9c Add Initial IRenderProcessHandler.OnContextCreated/Released implementation (#2697)
* WinForms/WPF - Dispose of IFrame after calling LoadUrl

* BrowserProcess - Add initial implementation of IRenderProcessHandler.OnContextCreated/OnContextReleased

- IV8Context.Execute is the only method to be implemented so far (execute script without returning a result)
- Wrappers for CefFrame and CefBrowser have yet to be imported yet, still need to determine if they should be included individually or reference to CefSharp.Core added

* BrowserProcess - Add wrappers for Browser and Frame

Ultimately we should probably remove the CefSharp.BrowserSubprocess.Core project and move all the code into a folder/namespace within CefSharp.Core
This would allow us to share the a lot of existing code, major refactor required

* CefSharp.Common.props - Add CefSharpBrowserProcessCore32/64 properties

Make creating your own custom browser process easier

* BrowserProcess - Remove example and add comments about creating your own custom version
2019-03-20 20:33:10 +10:00
amaitland fde8fc67e7 Nuget packages - Move the item groups that contain folders into the props files
Props are included before targets (usually top of build file), so this makes them more accessible.
Previously you'd have to include user code after the .targets file to access the item groups
2019-02-20 18:48:49 +10:00
Chris a9b3c36f77 Build.ps1 - Automated more tasks relating to updating CefSharp version and copyright year (#2640)
* build.ps1 - Write version to CefSharp.shfbproj

* build.ps1 - Specify UTF-8 as encoding when reading

* build.ps1 - Save files as UTF-8 without BOM

* build.ps1 - Update copyright year on compiled files

* build.ps1 - Update version in appveyor.yml

* Removed copyright year from the nuspec files

* Updated editorconfig for ps1 files

* Apply changes from build.ps1

* LICENSE - Removed year
2019-02-15 21:40:25 +01:00
amaitland 3c650a0121 CefSharp.Common.props - Remove <None/> entries from targets
Should have been removed in https://github.com/cefsharp/CefSharp/commit/d5593bbffb23dff216571dc8f12b55458b788352#diff-7ce5a629cd14a698d255731fe97f9f1d
2019-02-07 13:22:38 +10:00
amaitland a350f963f4 Nuget update copyright year 2019-02-07 13:22:37 +10:00
amaitland 92ddcbca5d NuGet/Readme.txt - Add app.manifest info
Also add link to General Usage Need to know/limitations section

Resolves #2524
2018-09-28 12:03:48 +10:00
amaitland d5593bbffb Nuget - Revert back to the 63 package props/targets files
These changes are well tested in previous releases so going back to this structure for now
2018-08-12 15:36:26 +10:00
amaitland 8f72479738 Nuspec - Experiment with adding dependencies to a dependency group
Interesting to see if this forces a minimum version of .Net 4.5.2
2018-07-17 20:44:58 +10:00
Alex Maitland 8b64cc31d9 Update Readme.txt
Make `x86`, `x64` target info a little more detailed.
2018-07-17 14:54:04 +10:00
amaitland d56eed0f06 NuGet/CefSharp.Common.props - For x86/x64 platforms the BrowserSubProcess wasn't being copied
Revert to Private false and let the None target copy the files
2018-05-01 12:23:10 +10:00
amaitland 837506dd91 Nuget - Copy the x86 libs before the x64 libs for AnyCPU target
Hopefully this resolves the issue with the VS Designer picking up the x64 ones.

Issue #2276
2018-03-07 16:43:52 +10:00
amaitland 298e4c224a Nuget - CefSharp.Common use the props file to copy the files 2018-03-07 13:31:37 +10:00
amaitland baf8058aeb Nuget - First attempt at removing targets files for OffScreen, WinForms and WPF packages
Should now just be copied in the props files, using a <None/> target to copy the AnyCPU files with copy local false (private = false) and
x86 and x64 using copy local true

Hopefully only need a targets file for the CefSharp.Common package as it copies the cef.redist(x86|x64) files
2018-03-07 13:15:43 +10:00
amaitland 8dd27ab03d Nuget Props - Another attempt at #2276 2018-03-07 11:35:44 +10:00
amaitland 894787f877 Nuget props - invert when and otherwise so x86 comes first
Problem with VS was always picking up the x64 version when attempting to use designer

Attempt to fix #2276
2018-03-06 15:32:35 +10:00
amaitland cdb8d02baa Nuget CefSharp.Common.targets error message to clarity that you must set the solution and platform target
Resolves #2287
2018-03-05 16:09:44 +10:00
amaitland 4ff892bc48 Nuget - Fix casing of AnyCPU (was previously AnyCpu)
Related to #2276
2018-02-14 19:24:31 +10:00
amaitland 72ce8cd87f Nuget\Readme.txt - Update VC++ Requirement 2018-02-07 13:24:49 +10:00
amaitland 0e25149c96 Nupkg Restructure
Resolves #2156

Nuget packages updated to use ItemGroup None instead of Copy target
Nuget props restructure to support Win32 target
x86 and Win32 targets are exactly the same in content, they differ in name only, so switched to using an <Otherwise/> block
Remove AnyCpu <When/> option from props files and consolidate with x86 and Win32. Set Private to false and rely on the
<None/> entires to copy the files to the output folder

Ideally would move the OffScreen, WinForms and WPF targets file content to the props (as they're actually props now), unfortunately
we need guaranteed ordering and Nuget 2.8.x doesn't provide that, if we leave them as .targets it'll happen late enough to make sure
the cef.redist list of files is provided.
https://github.com/NuGet/Home/issues/4229#issuecomment-271387190
2018-01-23 12:21:14 +10:00
amaitland 247d0d688d Nuget packages - create public properties for common, winforms, wpf and offscreen targets so they can be reused if required
Combine Win32 and x86 target in CefSharp.Common.targets
2018-01-22 15:49:26 +10:00
amaitland 4f621c197a Untabify
[skip ci]
2017-12-19 11:48:56 +10:00
amaitland 2c935268e6 Upgrade to CEF 3.3239.1700
Update version numbers to 63.x
Remove EnsureNuGetPackageBuildImports targets (newer nuget restore method should always be used)
cef.redist targets updated as package structure changed with commit https://github.com/cefsharp/cef-binary/commit/982a6330e70a75860bc6ecb6f84d55456b847d68
(Swiftshader should now be supported)
2017-12-19 11:44:34 +10:00
nisbus bff333a201 Change the targets to BeforeBuild (#2130)
When the copying of files is done after build and you sign a clickonce distribution the copied files will not match the manifests hash anymore.
Changing it to BeforeBuild got it working again for me.
2017-12-01 23:00:17 +02:00
ymccready 2bdaa17d64 Prevent VS from always rebuilding projects that reference CefSharp when using AnyCPU platform (#2083)
* Replacing Condition with <Choose> tag

* Replacing Condition on references with <Choose> tag

* Replacing Condition on references with <Choose> tag

* Replacing Condition on references with <Choose> tag
2017-08-25 17:55:50 +02:00
Alex Maitland 223334b025 Update Readme.txt
Update Designer support comment
Add MSDN reference for changing solution platform.
2017-03-22 12:05:44 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
amaitland e9a5434805 Add general usage guide to NuGet/Readme.txt 2017-01-16 11:18:33 +10:00
amaitland 8c38bfd862 Nuspec pdb errors - some copy and paste errors meant that x64 versions of the xml and pdb files were being incorrectly included 2017-01-06 16:09:16 +10:00
Alex Maitland 51ef5d76c1 Update Readme.txt
Tutorials are no longer maintained, best place to start is the MinimalExample
2016-12-13 23:53:21 +10:00
amaitland cba32f11af Add FrameworkVersionCheck to CefSharp.Common.targets - hopefully this will make it quite clear
Not yet tested
2016-10-24 09:36:02 +10:00
Alex Maitland 25754770cc Update Readme.txt
Add `Debug.log` reference.
2016-10-20 19:42:32 +10:00
Alex Maitland 0b331319b8 Update Readme.txt
Fix typo
2016-10-11 07:38:47 +10:00
Alex Maitland 5deffb0b91 Update Readme.txt
Add reference to AnyCpu support
Add link to GitHub releases
2016-10-05 07:48:49 +10:00
amaitland 790ad26f8d Add release notes section to Nuspec files, see if the url is updated based on the package version 2016-08-29 08:22:36 +10:00
intrueder 2f6916504b Configure directory where msbuild will copy CefSharp files (#1753)
* Reflect correct target directory in msbuild message for x64 files on AnyCPU platform

* Introduce $(CefSharpTargetDir) msbuild property to make it easily overridable
2016-08-19 11:13:42 +10:00
amaitland 11edc4f403 Re-add PlatformCheck to CefSharp.Common.targets - as AnyCPU won't work out of the box we'll still advise to use x86/x64, to use AnyCPU you'll need to
set CefSharpAnyCpuSupport in your project before you'll be allowed to use it, should hopefully reduce all the support complaints for those
who don't read the documentation.
2016-06-20 12:50:35 +10:00
amaitland 60a1e615fc Upgrade to 3.2704.1429 - Required for following changes as cef.redist targets files have changed
Update CefSharp.Common.targets so it copies the cef.redist packages
Add support for Win32 target (obviously uses x86 files)
Update CefSharp.Native.props to copy the files also for local builds
Add AnyCPU target
Add CefLoader helper class for AssemblyResolver
2016-06-17 10:35:12 +10:00
VorTechS eba393bf73 Update Readme.txt
Added link to Microsoft .NET Framework 4.5.2 for those needing it, for Visual Studio 2012 and 2013
2016-06-14 16:03:50 +01:00
amaitland 824c34f5d3 Update Readme.txt - .Net 4.5.2 is now required 2016-06-01 07:21:16 +10:00
amaitland e3c0d8b013 Formatting of NuGet/CefSharp.Common.nuspec file was still a little out 2016-03-16 11:58:30 +10:00
amaitland 3b0a934ffb Untabify 2016-03-16 11:49:39 +10:00
amaitland 6e66d172a7 Cleanup bin/obj folder output for the VC++ projects - more c# style now than vc++ (overall consistency)
Update nuspec file to reference new locations
2016-03-16 11:36:23 +10:00
Alex Maitland de059dde26 Update Readme.txt
Change line about opening issue on github, let's keep issues for bugs only
2016-03-11 09:18:51 +10:00
amaitland a1ea193f36 Symbols - Forgot to include pdb files for CefSharp.dll and CefSharp.Core.dll 2016-02-26 14:36:08 +10:00
amaitland a9a4322c4e Remove NuGet.exe - build script will download the latest version 2016-02-26 12:08:39 +10:00
amaitland 71ce888073 First steps to publishing a symbols package
Add pdb files to nuspec - they're only included when the -symbol flag is used
Add src files to nuspec - they're only included when the -symbol flag is used
Update appveyor.yml to push symbol packages to the MyGet feed
Add -symbol flag to build.ps1 so the symbol packages are generated
WinForms project not outputs pdb files
WinForms release builds are not optimized - probably should have been already
2016-02-26 11:49:52 +10:00
Alex Maitland cf6258160b Update Readme.txt
Add Gitter Chat reference to Nuget readme
Add yet another reference to installing Visual C++ 2013
2016-02-22 08:09:02 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland 11b379f526 NuGet/Readme.txt add a second note about VC++ 2013 now being required and update the line number pointing to the CEF Readme.txt in cef-binary 2015-10-30 07:53:53 +10:00
amaitland 9fbf49432e Update VC++ reference 2015-09-09 12:13:48 +10:00