How do I run a .NET file in Linux?

Ngân Lam

New member
How do I run a .NET file in Linux?
Answer
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.
23 окт. 2017 г.
 

Tìm kiếm

Back
Top