Commit Graph

231 Commits

Author SHA1 Message Date
Alex Maitland 67a08c47ee BrowserSubProcess/Examples/Tests - Migrate to newer SDK Style projects
- Migrate to new SDK style projects
- Migrate to chromiumembeddedframework.runtime packages
- Remove old packages.config files
- Update post build event for BrowserSubprocess to set TSAware/LargeAddressAware
- Change project build order

Issue #3706
2021-10-12 19:48:11 +10:00
Alex Maitland 2e55f7d1aa Upgrade to CEF 94.4.2+g6a963ca+chromium-94.0.4606.61 / Chromium 94.0.4606.61 2021-09-29 09:49:40 +10:00
Alex Maitland 3f27c9d7ae ClickOnce - Remove attempt at AnyCPU workaround
Wasn't working so reverting for now
2021-09-23 14:36:08 +10:00
Alex Maitland a566c284aa ClickOnce - AnyCPU Use full path 2021-09-23 13:46:15 +10:00
Alex Maitland 2b8f1f4b1a ClickOnce - Load CefSharp.dll from parent directory if not in current directory
Assembly.LoadFile wasn't working for some reason, switch to using AppDomain.CurrentDomain.AssemblyResolve
Only attach to even if file doesn't exist within the current project

Follow up to https://github.com/cefsharp/CefSharp/commit/6f4fe5e12ad81297218da0d8e43a629af77879cc#diff-2bf0d9d6d03aa9b6327ddacd7d82698462654236f558191054e7ed274b6addd9
2021-09-23 13:12:38 +10:00
Alex Maitland 738e90dbc2 Upgrade build version to 94.0.30 2021-09-10 15:50:55 +10:00
Konstantin Preißer 462bc747bd Add support for Windows ARM64 to CefSharp.NETCore packages (#3359)
* Add support for Windows ARM64 for the NETCore packages.

Note: .NET 5.0 or higher is required to build a WinForms/WPF application for win-arm64.

Fixes cefsharp/CefSharp#2944

* PR feedback: Remove "WIN32" define as it is already defined by minwindef.h.

* PR feedback: Switch the CefSharp.*.Example.netcore and CefSharp.Test.netcore projects from cef.redist to chromiumembeddedframework.runtime.

Note: These projects are excluded for build when platform is 'arm64', as otherwise the build fails as WinForms and WPF are not yet available for ARM64 in .NET 5.0.

* Follow-Up: Update path to CefSharp.Test.dll.

* PR feedback: Also use RuntimeInformation for the .NET Framework example projects.

* PR feedback:
- Remove copying of CefRedist files in CefSharp.AfterBuild.targets which is no longer needed.
- Update .vsconfig to include the VC ARM64 build tools.
2021-04-01 17:27:48 +10:00
Alex Maitland 6f4fe5e12a ClickOnce - Load CefSharp.dll from parent directory if not in current directory
Still not loading, move the EnableHighDPISupport into internal method

Follow up to https://github.com/cefsharp/CefSharp/commit/aee97e650dd1d3099e17cf84930bc016b84e6c4c
2021-03-24 20:18:27 +10:00
Alex Maitland 583608095a ClickOnce - Load CefSharp.dll from parent directory if not in current folder
When publishing with ClickOnce targeting AnyCPU the x64 folder is missing a copy of CefSharp.dll which is required by the BrowserSubprocess.
The file is copied correctly when the projects builds normally, so there's some quirk of the Publish process.

Temp workaround

Issue as described at https://github.com/cefsharp/CefSharp/issues/3319#issuecomment-791783346
2021-03-23 10:49:14 +10:00
Alex Maitland 73e2192c95 Upgrade version numbers to 89.0.60 2021-03-12 13:20:12 +10:00
Alex Maitland 1397398770 Upgrade to CEF 88.2.1+g0b18d0b+chromium-88.0.4324.146 / Chromium 88.0.4324.146 2021-02-05 13:39:50 +10:00
Alex Maitland 580042e58d Update version number to 88.1.0 2021-01-11 10:58:53 +10:00
Alex Maitland 3a29c70d81 Upgrade build version to 87.1.13 2021-01-09 14:20:11 +10:00
Alex Maitland a4e42843f8 Update version numbers to 87.1.12 2020-12-16 16:09:08 +10:00
Alex Maitland 32a8cc6b88 Net Core - BrowserSubProcess run on newer .Net version
Set RollForward Major so if .Net Core 3.1 isn't installed then .Net 5 can be used (if installed)

Issue #3197
2020-12-16 13:37:09 +10:00
Alex Maitland 8a367fbdc4 Refactor CefSharp.Core into CefSharp.Core.Runtime (#3311)
* Net Core - Rename CefSharp.Core.dll to CefSharp.Core.Runtime.dll

Partial rename, only Net Core, folder not renamed

* Net Core - Rename CefSharp.Core.RefAssembly to CefSharp.Core.netcore

Remove GenApi

* Core - Rename CefDragDataWrapper to DragData

Move into CefSharp.Core namespace

* WinForms/WPF/OffScreen - Migrate from GitLink command line to Nuget package

* Net Core - Refactor to have CefSharp.Core.dll contain only public Api

* Net Core - Remove CefSharp.Core.RefAssembly

* Net Core - Change CefSharp.Core.netcore output folder

* Net Core - Restructure nuget packages

* Net Core - Add Cefsharp.Core.Runtime.RefAssembly

* Net Core - Hide CLI/C++ classes from intellisense

Make sure users don't attempt to load them directly

* Rename CefSharp.Core to CefSharp.Core.Runtime

* Core - Restructure Net 4.5.2 packages to use CefSharp.Core.dll anycpu variant

Attempt to load CefSharp.Core.Runtime at runtime rather than having to use msbuild to copy the correct version

* Rename CefSharp.Core.netcore to CefSharp.Core

* WPF/WinForms/OffScreen - Change from x86/64 to AnyCPU

As they are all managed assemblies they can target AnyCPU.
Includes CefSharp.dll

* Convert RequestContextBuilder from C++ to C#

Now part of the CefSharp.Core PublicApi

* Update version number to 87.1.11

* Migrate more of the public Api to C#

* Net Core - Basic restructure complete

* Net Core - ModuleInitializer (Doesn't work yet)

* Remove direct references to BrowserSettings

* Net Core - ModuleInitializer load CefShar.Core.Runtime.dl

* Net Core - Load libcef.dll via CLR Module initializer

If no RID is specified then we can load libcef.dll using the module initializer

* Add version to CefSharp.Core

* Remove dependency on CefSharp.Core.Runtime
Rewrite common targets

* AnyCPU app.config transform

Improve AnyCPU support

* Improve Net Core 3 support
Only delete CefSharp.Core.Runtime.dll when AnyCPU

* Nuget - Add CefSharp.Core.Runtime reference when TargetFramework = NetCore

* Fix Typos

Based on #3306

* Net Core - Rename CefSharp.Core.Runtime RefAssembly source file

* Net Full - Generate CefSharp.Core.Runtime Ref Assembly

For now the powershell build script generates the .cs file based on a x86 release build.ps1
It's not possible to directly install GenApi as it requires a Sdk style project

* Net Core - Old packages copy files to required folders

* Test - Install newer .Net Compiler and set Lang Version to 7.3

* Net Core - Exclude Net 452 Runtime generated reference source

* Core - Add Refactoring TODO

* Ref Assembly - Generate source as part of build

- Move ref assembly source generate into GenerateRefAssemblySource.ps1
- Call before project build

Runs locally, see if Appveyor has a problem with the powershell script execution

* Core - Add more factory methods to create instances of managed wrappers

* Net Core - Make Initialzier properties internal

Not quite sure what the public API should look like as yet, so making internal for now.
2020-12-16 10:47:34 +10:00
Alex Maitland 833ebe49a6 Net Core - BrowserSubprocess compile as x86/x64 variants
Using an AnyCPU process wouldn't load when the browser process was x86
Basically x86 browser process couldn't use an x64 subprocess

Issue #3197
2020-11-06 17:41:45 +10:00
Alex Maitland 928bc68ef6 Net Core - Embed PDB and Source
For release builds we embed project source and symbols (at least until https://github.com/dotnet/sdk/issues/1458 is resolved)

Issue #3197
2020-11-06 15:45:36 +10:00
amaitland 11060ddc5a Upgrade build version to 86.0.20 2020-10-31 19:28:35 +10:00
amaitland 44e1e03fab Update build version to 86.0.19 2020-10-30 16:23:29 +10:00
amaitland d0c14cd036 Update version number to 84.4.0 2020-08-14 15:17:03 +10:00
amaitland e8cf336bf3 Net Core - Support for compiling with .Net Core 3.1
- Make Wpf/WinForms/OffScreen projects target AnyCPU
Only the VC++ projects are platform specific now.
- Remove BrowserSubProcess project reference
Not needed as we now have a standalone exe
- Add OffScreen example
- Add WPF Example project
- Fix some compile errors for main solution
- Add BrowserSubProcess executable
- JavascriptObjectRepository remove isAsync param
Rather than throw exception remove the option
- BrowserSubprocess Exclude the WCF specific code from the netCore project
- Add some ifdef/ifndef to exclude the WCF specific implementation
- Move WCF implementation into separate namespace
2020-07-23 15:23:45 +10:00
amaitland 36b35e478b Upgrade to CEF 83.4.2+gc8d4f85+chromium-83.0.4103.106 2020-07-02 09:46:41 +10:00
amaitland 0bf05e6de7 Upgrade to CEF 83.4.0+gfd6631b+chromium-83.0.4103.106 / Chromium 83.0.4103.106 2020-06-28 20:08:18 +10:00
amaitland 35e207d08b Update version number to 81.3.100 2020-05-23 12:05:06 +10:00
amaitland 99dd3f4273 Upgrade version number to 81.3.20 2020-05-09 05:56:39 +10:00
amaitland bce627097b Upgrade version number to 81.2.210 2020-04-27 17:45:53 +10:00
amaitland 2c5b07d2d0 Upgrade version to 80.0.40 2020-02-27 17:38:00 +10:00
amaitland 31c7e9957a Upgrade version number to 79.1.380 2020-02-27 15:24:18 +10:00
Alex Maitland cc2359126b BrowserSubprocess - Refactor to support .Net Core (#2891)
* BrowserSubprocess - Refactor to support .Net Core

- Added BrowserSubprocessExecutable for use with .Net Core (no WCF)
- Added WcfBrowserSubprocessExecutable for use with the existing CefSharp.BrowserSubprocess.exe which supports WCF (conditionally)

* Add additional comments and minor code simplification
2019-10-02 12:25:34 +10:00
amaitland 88ab0a1a69 Update version numbers to 76.1.90 2019-08-14 10:14:18 +10:00
amaitland f3e400d8d7 Update version number to 76.1.50 2019-08-02 10:14:31 +10:00
amaitland 6cc1026156 Upgrade version to 75.1.140 2019-07-27 21:36:33 +10:00
amaitland 6233925efd Upgrade version number to 75.1.40 2019-07-18 21:23:41 +10:00
amaitland e0268a3e2a Network Service - Register custom scheme in all process types
The network services requires that custom schemes be registered, previously we only registered them in render processes.

Add SubProcessApp to handle scheme registration
CefAppUnmanagedWrapper inherits SubProcessApp now

#2743
2019-07-04 20:47:42 +10:00
amaitland 74d6ae1c0e Update version number to 75.0.110 2019-06-25 19:24:57 +10:00
amaitland c8a85d3fb5 Update version number to 75.0.30 2019-06-25 19:24:57 +10:00
João Neves 734621592c Kill sub process to avoid hanging forever (#2756)
* Close cefsharp subprocess if main process dies

* Kill subprocess to avoid hanging on close
2019-05-31 10:55:43 +10:00
amaitland 5b191c0fdf Upgrade version numbers to 74.1.130 2019-04-26 07:19:41 +10:00
amaitland b97f85cb2a Revert "Upgrade version numbers to 73.1.12.0"
This reverts commit bb9873d410.
2019-04-10 19:02:17 +10:00
amaitland bb9873d410 Upgrade version numbers to 73.1.12.0
Issue #2706
2019-03-27 15:23:24 +10:00
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 8ffd29fc56 Upgrade version numbers to 73.0.0 2019-03-15 22:13:07 +10:00
amaitland 679250ee58 Upgrade version number to 72.0.0 2019-02-25 21:54:25 +10:00
amaitland 809a7859b6 Update version numbers to 71.0.0 2018-12-28 13:52:03 +10:00
amaitland ce93352345 Upgrade version numbers to 70.0.0 2018-10-28 10:53:26 +10:00
Chris 30ee538ce0 Added EditorConfig (#2514) 2018-09-17 00:46:21 +02:00
amaitland 6602977496 Upgrade version number to 69 2018-09-10 13:27:10 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland e5a7ed75ec Upgrade version numbers to 68.0.0 2018-08-07 19:15:00 +10:00