Commit Graph

54 Commits

Author SHA1 Message Date
Alex Maitland 0d5e830c27 Upgrade to CEF CEF 99.2.3+g962d9c9+chromium-99.0.4844.27 / Chromium 99.0.4844.27 2022-02-22 10:41:32 +10:00
Alex Maitland 21efaf3c46 Upgrade to CEF 98.1.12+gd87e3f4+chromium-98.0.4758.55 / Chromium 98.0.4758.55 2022-01-31 11:30:22 +10:00
Alex Maitland 82d7ae7ab2 Upgrade to CEF 97.1.1+g50067f2+chromium-97.0.4692.71 / Chromium 97.0.4692.71 2022-01-10 13:44:29 +10:00
Alex Maitland d45aaff7ca Upgrade to CEF 97.0.11+g695453b+chromium-97.0.4692.71 / Chromium 97.0.4692.71 2022-01-05 10:54:41 +10:00
Alex Maitland f07be8c5e5 build.ps1 - Add new update-build-version target
Updated Version/AssemblyVersion

Performs some unnecessary tasks, so could be improved
2021-12-16 13:02:24 +10:00
Alex Maitland 4d7c354f63 Update build number to 96.0.140 2021-11-25 11:01:57 +10:00
Alex Maitland 4df57e32bb Net Core - Nuget CefSharpBuildAction default to NoAction for Library projects
This should cleanup Library projects bin folders and eliminate stray copies of project files
when a Library RuntimeIdentifier/PlatformTarget doesn't match the WinExe/Exe project

For plugins the files will be included when EnableDynamicLoading = true

Can be overridden be adding <CefSharpBuildAction>Default</CefSharpBuildAction> to your project file

https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support#plugin-with-library-dependencies
2021-10-22 10:37:20 +10:00
Alex Maitland aedd60e3ff Upgrade to 94.4.9+g09ee681+chromium-94.0.4606.71 / Chromium 94.0.4606.71 2021-10-16 13:40:20 +10:00
Alex Maitland 8aa0ee5e9f build.ps1 - Cleanup
- Fail fast if nuget.exe not found
- Check for VSWhere at build start
  (should always be installed as it's included in VS2019 and above)
- Remove netcore31 from $Target valid set, we'll just rely on the
  $TargetFramework
- Push-Location to working directory for easier debugging
2021-10-14 09:39:12 +10:00
Alex Maitland 6953d82f25 Net Core - Nupkg Include xml files
Issue #3843
2021-10-11 10:27:49 +10:00
Alex Maitland 738e90dbc2 Upgrade build version to 94.0.30 2021-09-10 15:50:55 +10:00
Alex Maitland 2ddb0cb1ed Net Core - Update Nuget Readme.txt to include ARM64 2021-09-05 10:54:53 +10:00
Alex Maitland 464232538a Net Core/Net 5 - Improve CefSharp.Common.NETCore.targets RID handling
Resolves #3773
2021-09-04 14:08:05 +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 0c6268f940 Nuget - Improvements and formatting fixes
- Remove CefSharpBuildAction default to NoAction when Nuget 5.0 and Library
  For those writing plugins this would have resulted in no files being copied, will rely on users setting
  to NoAction themselves when required
- When $PlatformTarget is empty default to $Platform as the fallback, older Non SDK Style library projects
  are known to not set PlatformTarget when Platform is AnyCPU which would have resulted in only the x86 files being copied.
- Fix formatting of CefSharp.Common.NETCore.targets
2021-03-23 10:49:14 +10:00
Alex Maitland 6d080ad3f9 Nuget (Net Core) - Add CefSharpBuildAction to CefSharpAfterBuildDiagnostic 2021-03-12 13:55:38 +10:00
Alex Maitland 73e2192c95 Upgrade version numbers to 89.0.60 2021-03-12 13:20:12 +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 5ebb08f3bc Net Core - Nuget Add CefSharpBuildAction and default to NoAction for Class Library
For class libraries we don't want to copy our files into their output folder by default as they won't actually,
so added CefSharpBuildAction and defaulted to NoAction (can be overridden by the user if required).

Consuming packages will have the transitive reference added and files copied into WinExe/Exe projects by default
2021-03-06 10:37:48 +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 9475ca99b8 Net Core - Improve Nuget debugging 2021-03-02 11:44:23 +10:00
Alex Maitland f8e07de1a3 Nuget - When CefSharpTargetDir set remove the duplicate CefSharp.Core.Runtime.dll file from the bin folder
- Extra copy of CefSharp.Core.Runtime.dll when setting CefSharpTargetDir (see https://github.com/cefsharp/CefSharp/discussions/3371#discussioncomment-416961)
- Fix formatting (tabs to spaces, should change this to tabs at some point)
2021-03-02 10:35:53 +10:00
Alex Maitland e627af899e Net Core - Improve Exclude BrowserSubProcess from .Net 5.0 SingleFile/SelfContained builds
Issue #3407
2021-03-01 11:41:01 +10:00
Alex Maitland edba4bef9e Net Core - Exclude BrowserSubProcess from .Net 5.0 SingleFile/SelfContained builds
Issue https://github.com/cefsharp/CefSharp/issues/3407
2021-02-27 15:02:29 +10:00
Alex Maitland 0ca3a92700 Net Core - Remove CefSharp.BrowserSubprocess.runtimeconfig.json when SelfContained
- Previous fix worked for .Net Core 3.1, the .Net 5.0 SDK handles things differently
  Have to remove the runtimeconfig.json file when publishing so the BrowserSubprocess
  Runs for the SelfContained framework
- Fix formatting
2021-02-26 20:44:06 +10:00
Alex Maitland 2e88a66a22 Nuget - Update Readme.txt
- Updated dependency list
2021-02-26 13:23:47 +10:00
Alex Maitland f953f2daa7 Net Core - Add CefSharpAfterBuildDiagnostic nuget target
Can be added to any consuming project to output some useful diag information
2021-02-26 12:16:50 +10:00
Alex Maitland 7c45907c76 Net Core - Fix CefSharpExcludeBrowserSubprocessRuntimeConfigAfterResolveAssemblyReferences
Only when SelfContained is true, for SingleFile that's not self contained we'll need the runtimedeps.json file
2021-02-26 12:16:49 +10:00
Alex Maitland 34b17bd32f Net Core - SelfContained/PublishSingleFile exclude CefSharp.BrowserSubprocess.runtimeconfig.json
For SelfContained and PublishSingleFile we remove the CefSharp.BrowserSubprocess.runtimeconfig.json file so
the BrowserSubprocess runs using the packages .net runtime

Issue #3407
2021-02-25 20:29:37 +10:00
Alex Maitland 49dd49e8ca Net Core - Update Readme.txt with more details on RuntimeIdentifier 2021-02-11 13:26:17 +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 3a29c70d81 Upgrade build version to 87.1.13 2021-01-09 14:20:11 +10:00
Alex Maitland 2406a458e1 Net Core - OffScreen Add System.Drawing.Common dependency
Issue #3197
2021-01-08 14:33:19 +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 d466a3b991 Net Core - Add specific Readme.txt for Nuget packages 2020-12-16 15:24:09 +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
Konstantin Preißer 007cb53720 Improve the check for RuntimeIdentifier to also allow non-portable RIDs like "win7-x64" or "win10-x86". (#3295)
Issue: cefsharp/CefSharp#3197
2020-11-26 21:01:37 +10:00
Alex Maitland 95716dac6e Net Core - Copy files when no RuntimeIdentifier specified
- Include PackageReference in targets file, this technically probably valid though it works so we might test with it
- Copy files into the runtimes\{rid}\native\ folder
- Update PackageReference version number on build

Issue #3197
2020-11-08 15:34:08 +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 57f00e0627 Net Core - Change from <None/> to <Content/> in targets
https://docs.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items?view=vs-2019#content
2020-11-01 19:05:59 +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