How Do I Run a Dotnet Core in Ubuntu?
Contents How Do I Run a Dotnet Core App on Ubuntu? 1 Answer Publish Your Application as a Self Contained Application: Dotnet Publish -C Release -R...
Contents
How do I run a dotnet core app on Ubuntu?
1 Answer
- Publish your application as a self contained application: dotnet publish -c release -r ubuntu.16.04-x64 –self-contained.
- Copy the publish folder to the Ubuntu machine.
- Open the Ubuntu machine terminal (CLI) and go to the project directory.
- 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.