LMSouq
server-admin Open

Running a self-contained ASP.NET Core application on Ubuntu

MA
Mark
1 month ago
3 views
Problem Description
I've published an ASP.NET Core application as a self-contained application targeting Ubuntu. The publish seems to work fine. I've copied the files to a pretty vanilla Ubuntu machine. Now, how do I run my application? My understanding is that because it is a self-contained .NET Core application I *do not* need to download and install .NET Core anything. My application should contain everything it needs. All tutorials seem to say I should call `dotnet run`. However, the "dotnet" command line doesn't exist (is it supposed to be published into the self-contained folder??) So if I call it, I get "command not found". Of course I could download .NET Core, but doesn't that go against the whole self-contained concept? Here is a sample of the files I'm copying over: [![Enter image description here][1]][1] [1]: https://i.sstatic.net/GlkEh.png

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base