Commit Graph

20 Commits

Author SHA1 Message Date
Alex Maitland 8fb2e414b6 Nuget - Manually copy CefSharp Common files after initial Nuget restore
Follow up to https://github.com/cefsharp/CefSharp/commit/24d64c427e8d41709230baf460cb8c803048dc54
2021-07-24 16:13:10 +10:00
Alex Maitland 2b18d60c90 Nuget - VS2017 ClickOnce publish workaround
- Remove the duplicate CefSharp.Core.Runtime.dll entry from the manifest
- Switch to CefSharpCommonManagedDll as we only need CefSharp.dll and not CefSharp.Core.dll for the BrowserSubProcess
2021-02-23 10:28:15 +10:00
Alex Maitland 9d7cf7fcbb Nuget - Add support for buildTransitive
- Add support for buildTransitive folder
- Show error when MSBuild didn't copy files (unable to use a Copy Task as props files aren't imported at that point)
- Remove FrameworkVersionCheck (we now have our dlls in a lib\net452) folder so nuget should complain without our custom check)

Issue #3319
2021-01-29 15:05:20 +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 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 fde8fc67e7 Nuget packages - Move the item groups that contain folders into the props files
Props are included before targets (usually top of build file), so this makes them more accessible.
Previously you'd have to include user code after the .targets file to access the item groups
2019-02-20 18:48:49 +10:00
amaitland 3c650a0121 CefSharp.Common.props - Remove <None/> entries from targets
Should have been removed in https://github.com/cefsharp/CefSharp/commit/d5593bbffb23dff216571dc8f12b55458b788352#diff-7ce5a629cd14a698d255731fe97f9f1d
2019-02-07 13:22:38 +10:00
amaitland d5593bbffb Nuget - Revert back to the 63 package props/targets files
These changes are well tested in previous releases so going back to this structure for now
2018-08-12 15:36:26 +10:00
amaitland d56eed0f06 NuGet/CefSharp.Common.props - For x86/x64 platforms the BrowserSubProcess wasn't being copied
Revert to Private false and let the None target copy the files
2018-05-01 12:23:10 +10:00
amaitland 837506dd91 Nuget - Copy the x86 libs before the x64 libs for AnyCPU target
Hopefully this resolves the issue with the VS Designer picking up the x64 ones.

Issue #2276
2018-03-07 16:43:52 +10:00
amaitland 298e4c224a Nuget - CefSharp.Common use the props file to copy the files 2018-03-07 13:31:37 +10:00
amaitland 8dd27ab03d Nuget Props - Another attempt at #2276 2018-03-07 11:35:44 +10:00
amaitland 894787f877 Nuget props - invert when and otherwise so x86 comes first
Problem with VS was always picking up the x64 version when attempting to use designer

Attempt to fix #2276
2018-03-06 15:32:35 +10:00
amaitland 4ff892bc48 Nuget - Fix casing of AnyCPU (was previously AnyCpu)
Related to #2276
2018-02-14 19:24:31 +10:00
amaitland 0e25149c96 Nupkg Restructure
Resolves #2156

Nuget packages updated to use ItemGroup None instead of Copy target
Nuget props restructure to support Win32 target
x86 and Win32 targets are exactly the same in content, they differ in name only, so switched to using an <Otherwise/> block
Remove AnyCpu <When/> option from props files and consolidate with x86 and Win32. Set Private to false and rely on the
<None/> entires to copy the files to the output folder

Ideally would move the OffScreen, WinForms and WPF targets file content to the props (as they're actually props now), unfortunately
we need guaranteed ordering and Nuget 2.8.x doesn't provide that, if we leave them as .targets it'll happen late enough to make sure
the cef.redist list of files is provided.
https://github.com/NuGet/Home/issues/4229#issuecomment-271387190
2018-01-23 12:21:14 +10:00
ymccready 2bdaa17d64 Prevent VS from always rebuilding projects that reference CefSharp when using AnyCPU platform (#2083)
* Replacing Condition with <Choose> tag

* Replacing Condition on references with <Choose> tag

* Replacing Condition on references with <Choose> tag

* Replacing Condition on references with <Choose> tag
2017-08-25 17:55:50 +02: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
Bodekaer e7c4bc6656 Cleaner naming of CefSharp dll references when automatically imported from NuGet to VS 2014-11-28 12:23:51 +10:00
jornh 11567eed63 Good enough that CS.MinEx want's to build ...
This is what goes into the `CefSharp.Common` and `.Wpf` Nugets version 3.31.0.pre-1
2014-03-28 17:57:29 +01:00
jornh 6059982ea6 NuGet .spec updates for #288 2014-03-27 05:44:36 +01:00