By Sam Hobbs
Software Developer
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.
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!
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
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.