- JavascriptObjectRepository generates object ids using a static counter, we need to get the object Id for this
test to be reliable, using an Object Id of 1 will fail if the test order isn't in a very specific order
* fix IsComplexType NullReferenceException
Sometimes, the registered Javascript object does not have a namespace, at this time this function will throw a ```NullReferenceException```.
* add unit test for IsComplexType
* Simplify and remove useless code
* Update CefSharp/Internals/JavascriptObjectRepository.cs
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
This reverts commit d3a2da4be3.
This reverts commit aee97e650d.
Change needs more work/testing so reverting for now in preparation for the 89-pre release
- Remove the .Net Core specific implementation, was easier to unify them than first though
- Split checking for dlls into different folders to support AnyCPU
Specific .Net core DependencyChecker that takes care of the specifics of running under .Net Core/.Net 5.0
Later on the DependencyChecker can be unified.
Issue #3388
- 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 publishing with ClickOnce targeting AnyCPU the x64 folder is missing a copy of CefSharp.dll which is required by the BrowserSubprocess.
The file is copied correctly when the projects builds normally, so there's some quirk of the Publish process.
Temp workaround
Issue as described at https://github.com/cefsharp/CefSharp/issues/3319#issuecomment-791783346
This is a fix in response to the issue of not emitting spaces in Japanese IME (from @karthikeyancdm).
After all, it turns out that ImeSetComposition() and ImeFinishComposingText() should be invoked regardless of the current language.
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
- 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
Switching between Win32 and x86 builds locally and sometimes you end up with a reference to the
incorrect arch dll as it looks like the compiler thinks its up to date and doesn't copy the new dll.
Was easily fixed by calling Clean, was time consuming though.
As the browser is Disposed on a different Thread to OnAfterBrowserCreated is called there's possibility of an ObjectDisposedException.
Instead of locking just catch and ignore the error as it's extremely rare
Resolves#3437
- 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.
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