cefsharp / CefSharp.Dom

DOM/JavaScript API for CefSharp
MIT License
28 stars 6 forks source link

Support x86 and arm64 #5

Closed amaitland closed 2 years ago

amaitland commented 2 years ago

Screenshot_272

Error code

There was a mismatch between the processor architecture of the project being built "x86" and the processor architecture of the reference "CefSharp.Puppeteer, Version=1.0.22.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

Originally posted by @radiaku in https://github.com/cefsharp/Puppeteer/discussions/4#discussioncomment-1910151

amaitland commented 2 years ago

@radiaku You can try out commit https://github.com/cefsharp/Puppeteer/commit/8618ed5735f44df5d872d3f0cfdf48b3f5f98b68 if you are interested.

radiaku commented 2 years ago

@radiaku You can try out commit 8618ed5 if you are interested.

Tried it and build manually, I get this one working. There is some warning notice but nevertheless its working. Thanks for your help @amaitland

Screenshot_273

amaitland commented 2 years ago

There is some warning notice but nevertheless its working

There is no x86 target in the solution, there should only be AnyCPU did you add x86 yourself? You should target AnyCPU.

amaitland commented 2 years ago

Version 1.0.24 should appear on Nuget.org shortly which should target AnyCPU rather than x64.

radiaku commented 2 years ago

There is some warning notice but nevertheless its working

There is no x86 target in the solution, there should only be AnyCPU did you add x86 yourself? You should target AnyCPU.

I see.. Thanks for the info and the effort, youre very kind @amaitland , I would use this plugin for next project, its much easier than use socket.

Right now , I still need use socket, cause I need use Puppeteer-sharp-extra not pupetteersharp. For google login (OAUTH2) purpose, its need stealth plugin. But thanks for the improvement.

Cheers