Lompati ke konten utama

Browser ini sudah tidak didukung.

Mutakhirkan ke Microsoft Edge untuk memanfaatkan fitur, pembaruan keamanan, dan dukungan teknis terkini.

Unduh Microsoft Edge Informasi selengkapnya tentang Internet Explorer dan Microsoft Edge
Baca dalam bahasa Inggris
Baca dalam bahasa Inggris Edit
Twitter LinkedIn Facebook Email

DNX on Ubuntu

  • Code Sample
  • 07/06/2022
Browse code

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

This template will install the cross platform .NET execution context (DNX) on an Ubuntu Server installation, which allows you to write .NET apps on Linux!

Deploy To Azure Deploy To Azure US Gov Visualize

After deploying the VM - SSH into the machine and do the following to see the DNX app in action:

cd sampleConsoleApp
dnx run

Open up nano to edit the samplecode nano ~/sampleConsoleApp/main.cs code - which has syntax highlighting for C# enabled.

dnu build --framework dnxcore50
dnx run

Tags: Microsoft.Compute/virtualMachines, Microsoft.Compute/virtualMachines/extensions, CustomScript, Microsoft.Network/networkInterfaces, Microsoft.Network/networkSecurityGroups, Microsoft.Network/publicIPAddresses, Microsoft.Network/virtualNetworks, Microsoft.Storage/storageAccounts

  • Versi Sebelumnya
  • Blog
  • Berikan kontribusi
  • Privasi
  • Persyaratan Penggunaan
  • Merek Dagang
  • © Microsoft 2023
  • Versi Sebelumnya
  • Blog
  • Berikan kontribusi
  • Privasi
  • Persyaratan Penggunaan
  • Merek Dagang
  • © Microsoft 2023