.net-core - 是否可以在 Raspberry PI 上运行 .NET Core?

标签 .net-core raspberry-pi

我听说.NET Core也可以在 Linux 和 Mac 上运行。我目前在 Raspberry PI 上使用 Mono。是否有可能在 Raspberry PI 上运行 .NET Core?

最佳答案

我已成功使用 Raspbian 在 Raspberry PI 3 上运行 .NET Core 2 应用程序。

我已关注https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.mdhttps://github.com/dotnet/core/issues/447 :

在我的笔记本电脑上:

安装.NET Core 2.0 SDK

运行

mkdir helloworld
cd helloworld
dotnet new console

编辑helloworld.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <RuntimeIdentifiers>win-arm;linux-arm</RuntimeIdentifiers>
  </PropertyGroup>

</Project>

运行

dotnet publish -r linux-arm

在带有 Raspbian 的 Raspberry PI 3 上:

运行sudo apt-get install libc6 libcurl3 libgcc1 libgssapi-krb5-2 libicu52 liblttng-ust0 libssl1.0.0 libstdc++6 libunwind8 libuuid1 zlib1g

然后从我的笔记本电脑复制./bin/Debug/netcoreapp2.0/linux-arm/publish

[修改helloworld的权限]

运行./helloworld

关于.net-core - 是否可以在 Raspberry PI 上运行 .NET Core?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26907857/

相关文章:

c# - EF Core 左连接计数

python - 在mysql表中插入python变量时出错

docker - 在Docker容器中运行uv4l-未注册设备节点

c - 在STM32F407中断处理程序中禁用中断

kubernetes - rfc7231#section-6.5.1 Kubernetes上的dotnet核心入口 Controller api访问问题

c# - 如何在 .NET Core 2 中设置 AuthenticationScheme 和 AutomaticAuthenticate?

.net - Cosmos DB 模拟器 : Failed to get authorization headers for offers

c# - 将接口(interface)传递给 Startup.cs ConfigureServices 中的另一个服务

linux - 通过互联网访问树莓派桌面

java - 树莓派四轴飞行器高速运转