Question

.Net SDK for ASP.Net Core using Nginx

To host an ASP.Net Core MVC website using Nginx in a Droplet, do I need the .NET SDK?

The article How To Deploy an ASP.NET Core Application with MySQL Server Using Nginx on Ubuntu 18.04 says we need the .Net Runtime but it shows installation of the SDK. Is the SDK necessary?

I am publishing my MVC app using --self-contained true therefore I probably do not even need to install the runtime but it is installed.

Certainly I can also install the SDK if necessary but the article is confusing.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

My original intent was to ask specific questions about the article instead of asking about the entire article. There are however so many problems with the article that I gave up on it.

I think the article needs to be revised to be more current. Regardless, I think it would be better for the article to not describe use of a database; a separate article could describe use of a database. Instead it would help very much for the article to describe how to deploy from a GitHub repository automatically (when pushed) using a workflow. I think an article should use an ASP.Net Core application generated by a dotnet new command and describe how to deploy and host that.

I have been successful in doing all that so I do not need help with any of that.

Bobby Iliev
Site Moderator
Site Moderator badge
August 13, 2023

Hi there,

Indeed, the requirements can vary depending on how you publish your application. You’re correct in understanding that there is a distinction between the .NET SDK and the .NET Runtime when it comes to hosting an ASP.NET Core MVC website.

If you’re deploying with --self-contained true, you technically don’t need the .NET SDK on the server. You only need the .NET Runtime, which is included in your self-contained published application. If you’re only running the application (not developing or building), you can focus on having the .NET Runtime installed on the server.

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.