當我們為基于 .NET Framework 的 WinForm 程式增加 CefSharp.WinForms 依賴后,可能會遇到以下報錯資訊:
CefSharp.Common is unable to proceeed as your current Platform is ‘AnyCPU’. To target AnyCPU please read https://github.com/cefsharp/CefSharp/issues/1714. Alternatively change your Platform to x86 or x64 and the relevant files will be copied automatically. For details on changing your projects Platform see https://docs.microsoft.com/en-gb/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2017 CefSharpDemo
CefSharp.Common.targets
我們可以通過“配置管理器”為專案設定具體的 x86 或 x64 目標平臺來消除該報錯,同時我們也可以通過一些設定讓我們的程式同時支持 x86 和 x64 目標平臺,本篇將簡述如何為依賴來 CefSharp.WinForms 的程式啟用 AnyCPU 支持,
https://www.coderbusy.com/archives/833.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/228257.html
標籤:.NET技术
