Tuesday, March 21, 2023
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Podcasts
  • Web Hosting Directory
  • Login
  • Register
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Software
    • Network/Internet
    • Hardware
    • Artificial Intelligence
    • Windows
    • Policy/Legislation
    • Blockchain
    • Troubleshooting
    • How-Tos
    • Articles
No Result
View All Result
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Software
    • Network/Internet
    • Hardware
    • Artificial Intelligence
    • Windows
    • Policy/Legislation
    • Blockchain
    • Troubleshooting
    • How-Tos
    • Articles
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 Birol Bavas
June 18, 2022
3 min read
How to run ASP .NET applications on Ubuntu

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.NETUbuntu
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

Learn how to install GE-Proton on Steam Play using the ProtonUp-Qt app

How to install GE-Proton on Steam Play using the ProtonUp-Qt app

March 14, 2023 3:15 pm
How to create a song with AIVA for free

How to create a song with AIVA for free?

March 13, 2023 5:50 pm
DALL-E guide how to get the best use out of AI

DALL-E guide: How to get the best use out of AI

March 11, 2023 3:00 pm
How to find the page ID in WordPress

How to find the page ID in WordPress

March 5, 2023 8:00 pm
Get free daily newsletters from Cloud7 News Get the Cloud7 Newsletter
Select list(s):

Check your inbox or spam folder to confirm your subscription.

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

Get the free newsletter

Subscribe to receive the latest IT business updates straight to your inbox.

Select list(s):

Check your inbox or spam folder to confirm your subscription.

Recent News

  • 7 best cyber security schools
  • 7 oldest Linux distros that are still being maintained
  • OVHcloud purchases its first Quandela quantum computer
  • Leil Storage launches an innovative data storage solution
  • Tails 5.11 is released, download it now

Cloud7 News
Cloud7 is a news source that publishes the latest news, reviews, comparisons, opinions, and exclusive interviews to help tech users of high-experience levels in the IT industry.

EXPLORE

  • Web Hosting
  • Cloud Computing
  • Data Center
  • Cybersecurity
  • Linux
  • Network/Internet
  • Software
  • Hardware
  • Artificial Intelligence
  • How-Tos
  • Troubleshooting

RESOURCES

  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Podcasts
  • Web Hosting Directory

Get the Cloud7 Newsletter

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

  • About Us
  • Privacy & Policy
  • Copyright Policy
  • Contact

© 2023, Cloud7 News. All rights reserved.

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

© 2023, Cloud7 News. All rights reserved.

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

Add New Playlist

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