@ankit_nagpal , Couldn't you also do the following:
cat > /etc/systemd/system/website.service << EOF
[Unit]
Description=Example .NET Web App running on Ubuntu
[Service]
WorkingDirectory=/home/yourdomain.com/public_html
ExecStart=/usr/bin/dotnet /home/yourdomain.com/public_html/Website.dll...
@ankit_nagpal... I just found your posted solution... Has this been verified more than once (@jupagose's post)? I need to do this but I need verification that this is a viable plan.
Thanks a million!!!