Wednesday, June 29, 2022
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory
  • Login
  • Register
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
No Result
View All Result
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
No Result
View All Result
Cloud7 News
No Result
View All Result

Home > How-Tos > How to run ASP.NET applications on Ubuntu

How to run ASP.NET applications on Ubuntu

With the SDK package developed by Microsoft, you can run your ASP .NET application on Ubuntu.

Birol Bavas by Birol Bavas
June 18, 2022
in How-Tos
3 min read
0 0
0
How to run ASP .NET applications on Ubuntu
0
SHARES
15
VIEWS
Share on FacebookShare on TwitterShare on EmailFollow on Google News

ASP.NET applications are supported on Linux distributions. In this article, we will describe the installation of your .NET application on the Ubuntu distribution. To run the .NET application you have developed, you need to install the SDK package developed by Microsoft. Additionally, package manager downloads are only supported on x64 architecture. For ARM and other architectures, you can install it with Snap package manager or manually.

Table of Contents

  • What is ASP.NET?
  • How to run ASP .NET applications on Ubuntu?
    • Step 1: Download .NET SDK on Ubuntu
    • Step 2: APT Package Update
    • Step 3: Install .NET SDK
    • Step 4: Make your application compatible with Linux
    • Step 5: Run your application

What is ASP.NET?

ASP.NET keeps the content that will appear in the static structure separate using the ASPX structure. It uses one of the “.net” languages ​​when designing web pages and applications. ASP.Net is a very powerful web development platform that comes with .NET Framework. It enables not only HTML-based static pages but also interactive and renewable dynamic pages. E-commerce sites, news portals, corporate applications, and forum sites, which are among the most popular web applications of today, can be designed and managed with ASP.NET. More information: What is ASP.NET?

How to run ASP .NET applications on Ubuntu?

Step 1: Download .NET SDK on Ubuntu

First, you need to download the SDK package. To do this, paste the command on the terminal screen and complete the download:

wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb


Step 2: APT Package Update

Now, update the APT package manager by using the following command:

sudo apt update


Step 3: Install .NET SDK

For the application to work properly, you need to know which .NET version is and install that version. In this article, assuming that your application is developed with ASP.NET 5.0 version, this version will be installed:

sudo apt search dotnet-sdk

sudo apt install dotnet-sdk-5.0

Congratulations. You have successfully installed the .NET SDK package on your Linux distribution. Now it’s time to run the project.


Step 4: Make your application compatible with Linux

Navigate to the project’s folder via the terminal screen and run the following command. We set the name of the newly created folder as “out”. You can give any name you want.

dotnet publish -c Release -o out


Step 5: Run your application

Check the created project name in the “out” folder and then run your application using the following command. The Project.WebUI that appears in the folder is your project’s file (“Project” is your project’s name).

dotnet out/Project.WebUI.dll

Congratulations! you have run your web application. You can control your web application at http://localhost:5000.

Tags: ASP.NET
ShareTweetSendShare
Birol Bavas

Birol Bavas

Birol Bavas is the operations & security manager of Cloud7. He has been building system architectures for several years. He is also a PHP and C# developer and has built countless web applications. For more than 10 years, he has been using Linux actively.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Next Post
10 gift ideas for tech-savvy fathers

10 gift ideas for tech-savvy fathers

Related News

How to install ionCube Loader in AlmaLinux

How to install ionCube Loader in AlmaLinux

June 25, 2022 9:00 am
How to install IIS via Windows Server 2022

How to install IIS via Windows Server 2022

June 11, 2022 4:00 pm
How to install WordPress via Docker on AlmaLinux

How to install WordPress via Docker on AlmaLinux

June 4, 2022 12:00 pm
How to install Zabbix on AlmaLinux

How to install Zabbix on AlmaLinux

June 4, 2022 11:00 am
Get free daily newsletters from Cloud7 News Get the Cloud7 Newsletter

Check your inbox or spam folder to confirm your subscription.

By subscribing, you agree to our
Copyright Policy and Privacy Policy

Editor's Choice

Interview with Igor Seletskiy on AlmaLinux

7 best hosting control panels

How to update Linux Kernel without rebooting?

7 best Linux mail servers for 2022

7 best cPanel alternatives for 2022

7 best Linux web browsers for 2022

7 best CentOS alternatives

7 best Linux server distros for 2022

How to scan your server for Log4j (Log4Shell) vulnerability

10 Best Web Hosting Services of 2022

AlmaLinux 8.6 Stable is ready to download

Ubuntu 22.04 LTS is available for download. What is new?

Kali Linux 2022.2 is ready for download

Advertisement

Recent News

  • Many Kubernetes instances are exposed to the internet
  • Firefox 102 released with Query Parameter Stripping
  • Mitre releases 2022’s most dangerous bugs
  • Nvidia has released the 515.57 display driver
  • Memory corruption vulnerability found in OpenSSL v3.0.4

Our Latest Interview

Interview: Erez Barak, Vice President Observability of Sumo Logic
Interview

Interview: Erez Barak, Vice President Observability of Sumo Logic

by Atalay Kelestemur
November 25, 2021 3:23 am


Cloud7 News is a news source that publishes the latest news, industry news and exclusive interviews on web hosting, cloud computing, data center, cybersecurity and linux.

News Categories

  • Web Hosting
  • Cloud Computing
  • Data Center
  • Cybersecurity
  • Linux
  • Network/Internet
  • Software
  • Hardware
  • Blockchain

Our Free Modules

  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory

Get the Cloud7 Newsletter

Get FREE daily newsletters from Cloud7 delivering the latest news and reviews.

  • About
  • Privacy & Policy
  • Copyright Policy
  • Contact

© 2022, Cloud7 News. Latest Cloud Computing, Web Hosting, Data Center Industry and Tech News

No Result
View All Result
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory

© 2022, Cloud7 News. Latest Cloud Computing, Web Hosting, Data Center Industry and Tech News

Welcome Back!

Sign In with Facebook
Sign In with Google
Sign In with Linked In
OR

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Sign Up with Facebook
Sign Up with Google
Sign Up with Linked In
OR

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.