gpt4 book ai didi

c# - 将 .NET Standard 2.0 与 Mono 结合使用

转载 作者:行者123 更新时间:2023-11-30 14:22:49 25 4
gpt4 key购买 nike

有谁知道 Mono 是否支持 .NET Standard 2.0.0?我目前有一个在 Windows 10 上运行良好的构建。当我尝试在 Ubuntu Linux 环境中使用 Mono 时,出现以下错误:

无法找到程序集“netstandard”。检查以确保程序集存在于磁盘上。

通过 SDK 添加 Dotnet core 2 没有任何问题,但我似乎没有任何对 .NET Standard 2 的引用。我最初在 windows 10 上遇到过类似的问题,在我更新我的 visual studio 版本后解决了.

最佳答案

咨询release notes for details ,但 Mono 5.4.0 包括 NuGet 4.3.0 和 MSBuild 15.4。

Mono 4.8.0 初步支持

API additions for .NET Standard 2.0

We added APIs to comply with .NET Standard 2.0, which is still a work in progress at the time of this writing. Note that in some cases an implementation is still missing and will throw at runtime.

Mono 5.2.0 运行时支持(编译处于“预览状态”)

.NET Standard 2.0 groundwork

We’ve done all the groundwork to support libraries that conform to .NET Standard 2.0. Loading and running a library compiled against the 2.0 standard should work fine, tooling support (i.e. creating a .NET Standard 2.0 library) is still in preview though.

需要安装.NET Core 2.0 SDK

You’ll need to install the .NET Core 2.0 SDK for tooling support as we use the MSBuild tasks which are installed as part of the .NET Core 2.0 SDK, similar to how Visual Studio/MSBuild on Windows does it.

关于c# - 将 .NET Standard 2.0 与 Mono 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48061333/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com