Frequent Question: Can You Run Net Core on Linux?
Contents

NET Core runtime allows you to run applications on Linux that were made with . NET Core but didn’t include the runtime. With the SDK you can run but also develop and build .

How do I run a .NET Core app in Linux?

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.

Is .NET available for Linux?

.NET is free. There are no fees or licensing costs, including for commercial use. .NET is open-source and cross-platform, with free development tools for Linux, Windows, and macOS. .NET is supported by Microsoft.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest