How Do I Run a Dotnet Core in Ubuntu?
Contents

How do I run a dotnet core app on Ubuntu?

1 Answer

  1. Publish your application as a self contained application: dotnet publish -c release -r ubuntu.16.04-x64 –self-contained.
  2. Copy the publish folder to the Ubuntu machine.
  3. Open the Ubuntu machine terminal (CLI) and go to the project directory.
  4. Provide execute permissions: chmod 777 ./appname.

How do I run a dotnet core app in Linux?

To run your app, navigate to the output folder and use the dotnet <PROJECT-NAME>. dll command. Your app is configured to target a specific version of . NET.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest