Commit Graph

16 Commits

Author SHA1 Message Date
Alex Maitland 5034014f04 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 12:59:37 +10:00
Alex Maitland 75806f0227 Net Core - Improve Nuget debugging 2021-03-04 10:31:04 +10:00
Alex Maitland 2b2031ef03 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:08 +10:00
Alex Maitland f63886f9b7 Net Core - Improve Exclude BrowserSubProcess from .Net 5.0 SingleFile/SelfContained builds
Issue #3407
2021-03-01 11:50:39 +10:00
Alex Maitland 06c525a6a7 Net Core - Exclude BrowserSubProcess from .Net 5.0 SingleFile/SelfContained builds
Issue https://github.com/cefsharp/CefSharp/issues/3407
2021-02-27 15:01:49 +10:00
Alex Maitland 56959e9677 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:43:14 +10:00
Alex Maitland c87724014d Net Core - Add CefSharpAfterBuildDiagnostic nuget target
Can be added to any consuming project to output some useful diag information
2021-02-26 12:15:42 +10:00
Alex Maitland 4404fbaa4a 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:15:41 +10:00
Alex Maitland a3e8e919f3 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:36:29 +10:00
Alex Maitland 3a29c70d81 Upgrade build version to 87.1.13 2021-01-09 14:20:11 +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
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 0e27cd2db4 Nuget - Update NetCore packages 2020-10-31 19:15:23 +10:00