.NET Core 准备好在 Raspberry PI 3 上运行了吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39560892/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 09:50:43  来源:igfitidea点击:

Is .NET Core ready to run on Raspberry PI 3?

.netraspbian.net-coredotnet-cli

提问by PeterLiguda

I can find a lot of obsolete threads but a lot have been changed the last months.

我可以找到很多过时的线程,但在过去的几个月里已经改变了很多。

Is there currently any possibility to run .NET Core and/or ASP.NET Core on Raspberry with Raspbian (currently Jessie) withoutMono? Or what do I need?

目前是否有可能在没有Mono 的情况下使用 Raspbian(目前是 Jessie)在 Raspberry 上运行 .NET Core 和/或 ASP.NET Core ?或者我需要什么?

I can find some dnvm samples, but I cannot find one tutorial which is up to date and uses the dotnet cli. I know Windows 10 IoT is planned for v1.1.0 but I can find nothing for ARM based CPUs. Also there is no Docker sample for ASP.NET Core on Raspbian...

我可以找到一些 dnvm 示例,但找不到一个使用 dotnet cli 的最新教程。我知道 Windows 10 IoT 计划用于 v1.1.0,但我找不到基于 ARM 的 CPU。在 Raspbian 上也没有 ASP.NET Core 的 Docker 示例...

Even http://dot.netshows only a Homebrew install command but how to install .NET Core 1.0.1 on Raspbian / Linux without Homebrew.

甚至http://dot.net 也只显示了 Homebrew 安装命令,但是如何在没有 Homebrew 的情况下在 Raspbian/Linux 上安装 .NET Core 1.0.1。

采纳答案by Ben

.NET Core is scheduled to run on ARM based OS like Raspian / Windows 10 IoT for Q4 2016 / Q1 2017. https://blogs.msdn.microsoft.com/dotnet/2016/07/15/net-core-roadmap/

.NET的核心定于基于ARM的操作系统一样Raspian / Windows的10物联网为Q4 2016/2017年第一季度运行 https://blogs.msdn.microsoft.com/dotnet/2016/07/15/net-core-roadmap/

At this point of time I think you can follow the installations for Debian but you should get a exec format errorIIRC.

此时,我认为您可以按照 Debian 的安装进行操作,但您应该获得exec format errorIIRC。

Edit 3/10/17: first official instruction is online now: https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md

17 年 3 月 10 日编辑:第一条官方指令现已上线:https: //github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md

回答by Adi

Now you CAN run dotnet core applications on Raspberry PI 3, with no Mono installed at all.

现在,您可以在 Raspberry PI 3 上运行 dotnet 核心应用程序,而无需安装 Mono。

I managed to run complex app on headless Ubuntu Server 16.04 and on Ubuntu Mate 16.04.

我设法在无头 Ubuntu Server 16.04 和 Ubuntu Mate 16.04 上运行复杂的应用程序。

All you have to do is to get the build output of cross compilation of coreclr and corefx, remove private and pre-compiled dlls, and put your managed dlls on the PI along with them.

您所要做的就是获取 coreclr 和 corefx 交叉编译的构建输出,删除私有和预编译的 dll,并将您的托管 dll 与它们一起放在 PI 上。

Then you can run it using "corerun" executable.

然后您可以使用“corerun”可执行文件运行它。

(I posted a video on that one but it seems to be illegal to post it here)

(我在那个上发布了一个视频,但在这里发布它似乎是非法的)

Anyhow, to answer your question : it is now possible to run dotnet core apps on RPI3, although it isn't released yet.

无论如何,回答您的问题:现在可以在 RPI3 上运行 dotnet 核心应用程序,尽管它还没有发布。

回答by Marcus Cunningham

You can get a (seemingly) stable build of .Net Core on Raspberry Pi 2 or 3 by following Peter Marcu's instructions here: https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md

您可以按照 Peter Marcu 的说明在 Raspberry Pi 2 或 3 上获得(看似)稳定的 .Net Core 构建:https: //github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md

You don't need to use "corerun", you can use "dotnet". You build on your dev machine and copy to your Pi.

您不需要使用“corerun”,您可以使用“dotnet”。您在开发机器上构建并复制到您的 Pi。

Update: I realise now the original question specifically mentioned Rasbian (Jessie). The method at that link requires Ubuntu 14.04 or 16.04. But if that isn't a problem I think you should be good to go.

更新:我现在意识到最初的问题特别提到了 Rasbian (Jessie)。该链接上的方法需要 Ubuntu 14.04 或 16.04。但如果这不是问题,我认为你应该很高兴去。

回答by Vara

Yes, .Net Core will run on Raspberry Pi 3.

是的,.Net Core 将在 Raspberry Pi 3 上运行。

You can find the procedure for installation from herein stackoverflow.

您可以从这里在 stackoverflow 中找到安装过程。

In more details you can find the below link also

更详细地,您也可以找到以下链接

http://reddyinfosoft.blogspot.com/2020/01/how-to-install-net-core-31-on-raspberry.html

http://reddyinfosoft.blogspot.com/2020/01/how-to-install-net-core-31-on-raspberry.html

回答by Karl-Johan Sj?gren

Officially for the 1.0 release, no. The only runtimes available for ARM is currently the Windows ones.

正式的 1.0 版本,没有. 目前 ARM 唯一可用的运行时是Windows 的

Also, Homebrew is for OSX. What you want to be looking at in the future for on Raspbian is the Debian instructions.

此外,Homebrew 适用于 OSX。您将来希望在 Raspbian 上查看的是Debian 说明