Commit Graph

58 Commits

Author SHA1 Message Date
Alex Maitland f43cd64c55 Import CefSharp.Wpf.HwndHost into main repository. (#4981)
* HwndHost - Initial import

* HwndHost - Add Example to solution and use common IWpfChromiumWebBrowser interface

* HwndHost - Update UpdateNugetPackages.ps1

* HwndHost - Add Nuspec

* HwndHost Example - Upgrade version

* HwndHost Example - Try non self contained build for debug and release

* Test - Add basic HwndHost tests

Probably need to revisit these, little bit hacky creating the window

* HwndHost - Allow any RequestContext that inherits from Core.RequestContext

Cheery pick of https://github.com/cefsharp/CefSharp.Wpf.HwndHost/pull/31

* HwndHost Example - Disable arm64

Example will be removed shortly, so it doesn't matter too much now.
It will be moved to MinimalExample and the Wpf Example expanded

* HwndHost - Delete delegate command

* Upgrade packages

* Nuget - Move Nuspec file to PackageReference folder

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2025-01-18 06:40:48 +10:00
Alex Maitland 188a1b9cf4 CefSharp3.sln - Change CefSharp.Example to AnyCPU for release builds 2021-10-16 17:36:16 +10:00
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 087572f6d4 Core - Tweak Build order 2021-03-11 15:22:25 +10:00
Alex Maitland 536c49629c Core - Remove CefSharp.Core.Runtime.RefAssembly
No longer generate a ref assembly for the older net452 packages, CefSharp.Core.Runtime.dll should now purely be
a runtime dependency
2021-01-29 15:05:19 +10:00
Alex Maitland ce7e26404d Core - CefSharp3.sln remove AnyCPU platform config from solution
It's not usable, can only build with x86/x64, must have been added by mistake when adding the AnyCPU targets for the projects
2021-01-15 13:40:36 +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
campersau a6aa5ec05c AppVeyor - Enable Unit Tests on Build (#3065)
AppVeyor - Enable Unit Tests on Build

* Test - Fix tests

* use async which isn't that flaky

* rename CurrentDomainAssemblyResolve

* replace project reference to CefSharp.BrowserSubprocess with solution dependency

* updated comment on fixture

* revert whitespace changes

* remove project reference to CefSharp.BrowserSubprocess for consistency

solution dependency already exists

* move binding redirect with assembly resolve to separate fixture

* Revert "remove project reference to CefSharp.BrowserSubprocess for consistency"

This reverts commit b8b1d28c30.

* Revert ConcurrentMethodRunnerQueueFacts
2020-02-29 12:28:45 +10:00
Chris 30ee538ce0 Added EditorConfig (#2514) 2018-09-17 00:46:21 +02:00
amaitland 8d642df363 CefSharp3.sln - Remove .nuget folder from solution
Hasn't existed in the project for a while now
2018-03-07 16:44:43 +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 1d0c231d64 Add Issue Template to CefSharp3.sln 2017-12-20 09:44:42 +10:00
amaitland 9407ba1828 Due to limitations of VC++ we must run our tests in the default appdomain, it's possible to use xunit for testing.
Readd CefSharp.Test.csproj to solution
Add some very basic unit tests using xunit, DisableTestParallelization, Set xunit.appDomain to denied in app.config to disable using appdomains (https://xunit.github.io/docs/configuring-with-xml.html)
Add xunit vs test running packages, using 2.2.0 version as 2.3.0 was throwing an exception similar to https://github.com/xunit/xunit/issues/1514
TODO: Take a look at https://github.com/NuGet/NuGetGallery/tree/master/tests/NuGetGallery.Facts for some ideas on structuring xunit tests (look at implementing Theory)

NOTE: I am not providing this as a definitive set of tests, it's simply here to get someone else started in creating tests as it appears people have trouble dealing with AppDomain problem
Only includes Tests for the OffScreen version at this stage.
2017-10-25 10:44:38 +10:00
amaitland a86e03b6ef Update appveyor.yml to 57.0.0
Add appveyor.yml to CefSharp3.sln so it's easier to find and replace the version number
2017-03-14 06:11:46 +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
amaitland fc674d83a1 Remove CefSharp.Test project from solution - not currently being used 2015-11-27 11:35:41 +10:00
amaitland 7104e3e197 Upgrade solution to VS2013 2015-09-04 12:18:35 +10:00
jankurianski 5e658fccb5 Upgraded to use local 3.2357.1274 NuGet packages and fixed breaking changes 2015-07-21 15:16:25 +10:00
amaitland 7320902f48 Remove pack.bat (no longer exists) from solution 2015-04-20 11:06:13 +10:00
amaitland fb3415b5bd Add rough outline of Readme.txt to nuget package
(Let's see if the readme is opened when using the CI packages)
2015-01-27 12:43:47 +10:00
amaitland 4562b984ab Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2015-01-16 11:53:25 +10:00
Alex Maitland e5341cc14e Be more specific about what details are required when creating an issue, also some basic DO's and DONT's 2015-01-11 18:08:48 +10:00
amaitland e08051fcd7 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-27 13:12:49 +10:00
amaitland 9d1fd8abd6 Include nuget files in project for easy editing 2014-11-26 17:43:27 +10:00
amaitland e554ac66bf Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-18 13:48:46 +10:00
amaitland f73e501470 Start of renaming from 'Offscreen' to 'OffScreen' - pedantic I know! lol 2014-11-18 13:15:34 +10:00
amaitland 75f3b9d820 Remove AnyCPU as option from project and solution 2014-11-18 13:10:52 +10:00
jankurianski ea0c9673ca Added CefSharp.Offscreen, CefSharp.Offscreen.Example projects. 2014-11-14 18:19:22 +11:00
jornh f706c17c4a Nuke solution level packages.config 2014-11-02 19:53:59 +01:00
jornh e26c733442 Merge branch 'cef/2062' into pretend_WIPsMaster
Conflicts:
	CefSharp.Core/Internals/ClientAdapter.h
	CefSharp.Core/Wrappers/CefSubprocessWrapper.h
	CefSharp.Example/CefExample.cs
	CefSharp.Wpf/ChromiumWebBrowser.cs
	NuGet/pack.bat
	build.ps1
2014-11-02 19:45:29 +01:00
Peter Rekdal Sunde 4c7e4a6b21 include build.ps1 in solution so that we can use powershell tools inside visual studio 2014-10-14 10:15:51 +02:00
Peter Rekdal Sunde 09f7fd08d5 upgrade cef.redist to 3.2062.1856 2014-10-07 21:38:24 +02:00
amaitland 72517f17f6 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-10-07 11:07:19 +10:00
jornh efe01ece11 Add missing WinForms and Common package related files 2014-10-05 09:35:54 +02:00
amaitland 7c201f05bd Include packages.config in solution 2014-09-17 15:42:46 +10:00
amaitland 14971f613a Add release x64 for BrowserSubProcess.Core 2014-09-16 21:12:13 +10:00
amaitland 3e925993fc Add 64bit support for CefSharp.BrowserSubprocess.Core 2014-09-16 21:02:20 +10:00
JanEggers 83cfa9e7a3 removed redundant code and added wrapper objects to couple handlers with metadata from browserprocess 2014-05-08 20:12:57 +02:00
Per Lundberg b7dcc309a5 More work in trying to get the BrowserSubprocess.Core project compiling. 2014-04-08 19:41:13 +01:00
Per Lundberg 778f423ae9 #137: Removed a bunch of .nuspec files which aren't really ready yet. 2014-03-28 22:49:23 +02:00
JanEggers 56c8a50474 Merge remote-tracking branch 'upstream/master' into CefSharp.Core 2014-03-17 23:04:18 +01:00
Per Lundberg e46754f533 Must make the WPF and WinForms examples depend on the subprocess, so that it gets rebuilt when it is changed. (It feels like we have multiple mechanisms for this now, since we also have the actual output of the Subprocess projects as an "exe dependency", a simple file - I added it a while back since it was needed.) 2014-03-15 22:05:00 +02:00
JanEggers ae4cee8fad reverted task related stuff 2014-03-14 23:14:21 +01:00
JanEggers 1f9f286563 fixed compilation for x64 / win32 debug / release with vs 2013 and moved natives to seperate props file 2014-03-14 22:22:33 +01:00
JanEggers 52bfa60c23 remaining stuff that i desired to put in on changeset 2014-03-09 14:11:37 +01:00
Per Lundberg d93ff6230b Work towards #137. 2013-11-12 12:02:20 +02:00
Per Lundberg 5d675a4492 …so we can rename this project to its proper name. (#210) 2013-11-10 23:59:51 +02:00
Per Lundberg c75a956377 Well, let’s accept the fact that VS2013 wants to have this here. :) It will probably safeguard from people trying to use VS2010 without SP1, which they shouldn’t be doing anyway… 2013-11-10 23:34:12 +02:00
Per Lundberg 9bf08959dd Fixes to get #210 compiling better in terms of x64 (ie. #160). 2013-11-10 23:33:41 +02:00
Per Lundberg 6b9aeba39f Merge branch 'CefSharp3' of https://github.com/uowzd01/CefSharp into uowzd01-CefSharp3 2013-11-10 23:23:07 +02:00