- For Non library projects that use packages.config the default is now Content which should simplify clickonce support
For libraries the default will remain as None
- For NetCore projects CefSharpBuildAction Content is mapped to default to support upgrading users
Technically this is a breaking change, user impact is expected to be low and can be overridden to restore
the previous behaviour in the edge cases.
Issue #4062
VS2022 differs from previous versions in how the file paths appear to work. Use a filter to match based on filename + extension
rather than an exact file path match.
I've also updated the CefSharpAnyCPUExcludeCoreRuntimeBeforeGenerateApplicationManifest target to include a similar filter.
Leaving CefSharpExcludeCoreRuntimeBeforeGenerateApplicationManifest as is because it's only for VS2017
In VS2019:
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\buildTransitive\..\CefSharp\x86\CefSharp.Core.Runtime.dll;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\buildTransitive\..\CefSharp\x86\CefSharp.Core.Runtime.pdb;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\buildTransitive\..\CefSharp\x86\CefSharp.Core.Runtime.xml
In VS2022:
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\CefSharp\x86\CefSharp.Core.Runtime.dll;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\CefSharp\x86\CefSharp.Core.Runtime.pdb;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\CefSharp\x86\CefSharp.Core.Runtime.xml
Issue #3854
- Now there are just two targets that actually copy files as the AnyCPU was just a duplicate of
the x86/x64 ones.
- Remove file exists checks and just rely on the CefSharpPropertiesLoaded not being set
- Added a duplicate copy of CefSharpPlatformTarget (as _CefSharpPlatformTarget) to make
sure we copy the correct files.
When using Non SDK Stlye project with PackageReference and publishing with ClickOnce the CefSharp.Core.Runtime.*
files were missing from the installer.
Far as I can tell ClickOnce publishing isn't supported for SDK Style projects so just disable for PackageReference for now
https://github.com/cefsharp/CefSharp/discussions/3613#discussioncomment-913061
One final attempt to workaround https://github.com/dotnet/project-system/issues/4158
The None/Content entries aren't picked up as the .targets file doesn't exist before the Nuget restore (only when using packages.config)
Attempt to copy the files via calling CefRedist32CopyResources/CefRedist64CopyResources tasks.
Properties aren't accessible, I believe that tasks should be, so hopefully this copies the files.
Build actions like Publish are very unlikely to work correctly as the files won't have been included via the <Content/> entries.
- 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
When targeting AnyCPU with an SDK Style project PlatformTarget will default to x86 before build
and after build it will have been correctly updated to AnyCPU. This is too late for our purpose as we
have already copied the x86 files resulting in a build that won't run on an an x64 machine.
Issue https://github.com/dotnet/sdk/issues/1560
Disable an error to the user. Add <PlatformTarget>AnyCPU</PlatformTarget> as simple workaround to proj file.
See also https://github.com/cefsharp/CefSharp/discussions/3430 for background.
Release #3446
- Remove the workound as it's not working (behaviour is different depending on the SDK version installed)
- Add Prefer32Bit to diag output
For SDK style projects the $(PlatformTarget) is incorrectly set by default
Issue https://github.com/dotnet/sdk/issues/1560
Explicitly setting $(PlatformTarget) in your project file is the recommended solution until the above issue is fixed.
- NoAction should now disable AnyCPU checks
- Default to NoAction when Library and Nuget 5.0 when using PackageReference, the Transitive references should flow through to the consuming
projects.
- 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
Allow for specifying custom CefSharpPlatformTarget
For AnyCPU with Prefer32Bit set this <CefSharpPlatformTargetOverride>x86</CefSharpPlatformTargetOverride>
and the x86 binaries will be used, no need to performing any AnyCPU steps like adding a private probing path
Nuget/Msbuild is copying the CefSharp.Core.Runtime.dll into the output folder as part of the build
process (not sure which bitness it's actually copying).
This breaks `AnyCPU` as the dll won't work when using Assembly.Resolve
- 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
When CefSharpTargetDir is specified for x86/x64 platforms the files are included in a sub directory,
the CefSharp.dll file required by the BrowserSubProcess isn't copied by default and won't start, so we include an extra
- SdkStyle(PackageReference) projects now default to CefSharpBuildAction Content
- CefSharpTargetDir is now empty by default instead of a `.` and a trailing slash appended if required
For ClickOnce specifying <CefSharpBuildAction>Content</CefSharpBuildAction> in your project file
before the .targets file should allow for resources to be included in your ClickOnce installer.
The default None copies files to a dependant project, say you have CefSharp installed in your
Class library, the files will be included in projects that directly reference this project file
(Only one level deep).
Same as the Content/None options listed at
https://docs.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2019#build-action-values
Issue #3319
* 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.