Recently I was working on nopCommerce and wants to deploy in GoDaddy Plesk hosting for one of my clients. NopCommerce developed on Asp.Net Core 2.2, but GoDaddy supports only Asp.Net Core 2.0. In this article we will discuss how to deploy Asp.Net Core 2.2 application (nopCommerce here) in GoDaddy.
Asp.Net Core supports two types of deployment modes, Framework-Dependent and Self-Contained. Through Self-Contained deployment mode, we no need to install Asp.Net Core run time to run the Asp.Net Core application in server; instead Asp.Net Core runtime dll’s will be created as part of publish.
To deploy nopCommerce Asp.Net Core 2.2 application, follow below steps.
<PropertyGroup> <TargetFramework>netcoreapp2.2</TargetFramework> <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> ….. </PropertyGroup>
Save Nop.Web.csproj file and reload the solution again.
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> <aspNetCore processPath="dotnet" arguments=".\Nop.Web.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
Here Nop.Web.dll is the nopCommerce application dll.
By following the above steps, we can run any Asp.Net Core run-time applications in GoDaddy even though Godaddy supports only Asp.Net Core 2.0 run-time.