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

Viewed 699

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?

1 Answers

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.

Related