【问题标题】:Is CefSharp.OffScreen library compatible with .NET Standard 2.0?CefSharp.OffScreen 库是否与 .NET Standard 2.0 兼容?
【发布时间】:2023-03-16 00:43:01
【问题描述】:

CefSharp.OffScreen 库是否与 .NET Standard 2.0 兼容?特别是关于版本 79.1.360。

另外,是否有检查特定库是否与 .NET Standard 2.0 兼容的通用方法?

【问题讨论】:

  • 检查特定库是否与 .NET Standard 2.0 兼容的一般方法应作为单独的问题提出。

标签: c# compatibility cefsharp chromium-embedded .net-standard-2.0


【解决方案1】:

一般来说,如果包与 .NET Standard 兼容,您可以在 NuGet.org 上查看。

只需转到依赖项部分。如果列出了 .NET Standard,则它是兼容的。如果那里没有列出任何内容 - 有点不清楚 - 但它极不可能支持 .NET Standard。

例子:

JSON.NET

https://www.nuget.org/packages/Newtonsoft.Json/12.0.3

支持 .NET Standard 1.0+(还支持 .NET Framework 2.0+)

Cefsharp

https://www.nuget.org/packages/CefSharp.OffScreen/79.1.360

不支持 .NET Standard,但支持 .NET Core 3!

【讨论】:

  • 谢谢!现在对我来说很清楚了。我会尽快投票。
【解决方案2】:

CefSharp 与 .Net Standard 2.0 不兼容

CefSharp 使用 VC++ 构建,.Net Core 仅在 3.x 版本中添加了支持。

.Net Standard 由 .Net Core 2.x 实现

另外 VC++ 只能在 Windows 上运行,微软表示他们不打算支持跨平台。

微软官方回复参考https://devblogs.microsoft.com/cppblog/the-future-of-cpp-cli-and-dotnet-core-3/

【讨论】:

  • 您可以使用CefSharp.Net Core 3.x
猜你喜欢
  • 1970-01-01
  • 2021-11-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-02-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-10
相关资源
最近更新 更多