Commit Graph

20 Commits

Author SHA1 Message Date
Alex Maitland c38d5010a9 NetCore - Upgrade minimum version to 6.0 (#5127)
* NetCore - Upgrade minimum version to 5.0

* Update platform target
* Change to windows 10 specific TFM for top level packages
* Upgrade to .Net 6
* Nuget - Update packages
* Net Core - Fix dotnet test path
* Add Test Sdk and update Runner

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2025-07-05 13:59:17 +10:00
campersau 9ac8b886da Nuget - Add repository to nuspec (#4763) 2024-03-19 18:49:56 +10:00
Alex Maitland e439cd04f9 Core - Build BrowserSubProcess for net6.0-windows
- This is only for local builds, we still only ship a .Net Core 3.1 exe (.Net 5.0 for arm64)
- Potentially we should always use the netcoreapp3.1 exe to mimic what's happening when using the nuget packages
  That would require changes to the .targets file to copy the correct exe based on arch
2023-03-13 13:25:11 +10:00
Alex Maitland 6953d82f25 Net Core - Nupkg Include xml files
Issue #3843
2021-10-11 10:27:49 +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 5780aefda3 Net Source - Add SourceLink support
- The Debug PDBs will now use SourceLink
- The C++/CLI projects will use SourceLink
- CefSharp.Core.dll now generates/uses a ref assembly
- The managed (c#) projects still embed sources/symbols for Release builds

At some point we should investigate generating a snupkg to reduce the dll size
2021-03-12 13:15:31 +10:00
Alex Maitland 07ce2e0ab3 Net Core - Nuget chromiumembeddedframework.runtime include BuildTransitive
Update dependency includes add BuildTransitive
2021-03-05 17:15:20 +10:00
Alex Maitland 3c253b96b9 Net Core - Nupkg move CefSharp.BrowserSubprocess.Core.pdb into lib folder
Leave the pdb in the lib folder for now, won't be copied, it will be in the package if required

https://github.com/cefsharp/CefSharp/issues/3197#issuecomment-758546177
2021-01-13 16:56:58 +10:00
Alex Maitland c43d9e59d0 Net Core - Don't include CefSharp.BrowserSubprocess.Core.pdb in Nupkg
Short term workaround for https://github.com/cefsharp/CefSharp/issues/3197#issuecomment-758546177
2021-01-13 11:27:39 +10:00
Alex Maitland a79579c7f5 Net Core - Nuget update minClientVersion and License
- Requires a minimum of version 5.0
- License embedded in package as is preferred by Nuget (licenseUrl is deprecated)
2021-01-09 20:54:57 +10:00
Alex Maitland dcf5b43dc4 Core - Add Net Core DevTools
- Add specific Net Core DevTools generated code
- Improve xml doc generation for both Net 4.x and Net Core/Net 5
2021-01-08 14:26:21 +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
Alex Maitland de668e4fee Net Core - Include missing CefSharp.BrowserSubprocess files
CefSharp.BrowserSubprocess.dll wasn't included, and the runtimeconfig.json wasn't being copied

They're now in the native folder as they are runtime only assets and this copies them correctly.

Issue #3197
2020-11-06 14:31:09 +10:00
amaitland 0a55a8572b Net Core - Add Build to Common Nuspec
Appears to be required to copy swiftshader/locales
2020-11-01 19:01:44 +10:00
amaitland 0e27cd2db4 Nuget - Update NetCore packages 2020-10-31 19:15:23 +10:00
amaitland 0d25b7910b Net Core - CefSharp.dll wasn't being copied at runtime
Issue #3197
2020-10-21 17:28:39 +10:00
amaitland 98694ea1d8 Net Core - CefSharp.Common.NETCore.nuspec use chromiumembeddedframework.runtime
Still haven't managed to get the nuget runtime.json working, seeing if the naming convention of
packages matters

Issue #3197
2020-08-26 13:50:42 +10:00
amaitland 2f02c8e11c Net Core - Add Net Core Specific packages
Remove the old win-x64/x86 packages as I'll hopefully get this approach working

**Incomplete**

Issue #2795
Issue #3197
2020-08-14 15:12:51 +10:00