G3tinmybelly
G3tinmybelly

Reputation: 1877

Unable to run single file executable dotnet application on 64-bit ARM machine

I'm trying to run a .NET Core 3 executable on a 64-bit ARM machine. The Pine64 to be exact. I'm running the executable on 16.04 Ubuntu and using the linux-arm RID and it builds just fine but when trying to run it I get the error No such file or directory even though I'm looking at the file right in front of me.

Here is the command I'm running:

dotnet publish -c release -r linux-arm /p:PublishSingleFile=true -o $CWD/binaries/linux-arm -v q

If I build it without the single file then it runs perfectly fine but I need it to be a single file executable.

Any help is greatly appreciated!

Upvotes: 1

Views: 1326

Answers (1)

G3tinmybelly
G3tinmybelly

Reputation: 1877

I believe I found the answer. So I was using the RID linux-arm which is fine if you are using a 32-bit device like a RaspberryPi. Pine64 is a 64-bit device and I was under the assumption that linux-arm was a magical RID that did both 64 and 32-bit because the Microsoft docs made it out that it was just that easy (at least that's how I interpreted it). Anyways, I used linux-arm64 and BOOM it worked.

Upvotes: 1

Related Questions