How to publish from windows VS2017 .NET Core application for linux-arm?
Asked Answered
C

1

7

How to publish from windows VS2017 .NET Core application for linux-arm? When I try to make new publish profile I can choose as Target Runtime: portable, win-x86, win-x64, osx-x64 and linux-x64. (menu: Build->Publish->New profile->Folder->Advanced->Target Runtime)

How to add posibilities for publish to linux-arm and linux-x86? Should I install something more to my developer machine?

Considered answered 22/10, 2018 at 12:13 Comment(3)
Which version of Visual Studio and .NET Core SDK do you have installed? Also there is no linux-x86 runtime target AFAIKIdola
Visual Studio Community 2017 ver. 15.7.3 and .NET Core SDK ver. 2.1.0Considered
Maybe related: https://mcmap.net/q/1629465/-can-i-run-dot-net-core-on-arm-raspberry-pi/982149 mind answer https://mcmap.net/q/1629465/-can-i-run-dot-net-core-on-arm-raspberry-piGonzales
D
0

Go in your terminal and in your directory of your project and run

dotnet publish -c Release -r linux-arm

Then you get the binaries and can copy them to your Raspberry Pi.

No need to install additional things, just the dotnet SDK what you already done if you can build that for your own machine.

Danelle answered 9/2, 2021 at 14:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.