Visual Studio Code Aspnet Mvc Quickstart - 3 Steps on Ubuntu

thumbnail for this post

You are a .net developer or want to become one. You have started with Windows but every day people are talking about open source technologies and ubuntu. Also, windows has license fees and you see in the near future this is unsustainable. You are right. Go ubuntu, code dotnet in 3 steps.

I am a softare developer and am a certificated developer of Microsoft from 2012. I was a bit afraid when I first heard of mono project and thought it would never run correctly. After years, Satya has come to Microsoft CEO and got stunning decisions on board. Microsoft switched mind and hired many Linux core kernel developers and changed many things. They have open sourced .net framework with the name .net core[1]

So, let's get started with .net core on Ubuntu

  1. Install IDE Search and find the latest Visual Studio Code from Microsoft.

  2. Prepare Project Open IDE . Open New Terminal Please find “Terminal-New Terminal” from the menu. From terminal

        mkdir test-project
        cd test-project
        dotnet new MVC
        
  3. Run Project Press F5. Install c# Environment if not exists VS Code - Extension

Thats it, on your browser site is opened.

Please software developers, don't hesitate to write Unit Tests. Testing is a very important factor in your career. If you don't produce qualified products, you can have trouble with your team, boss and even customers.

And testers, please write Selenium tests and use these tests on Testbone. With just one selenium test, you will have Functional, Load and Security tests applied to your product with just simple clicks. You are a tiger 🐯, with Testbone you have power of 3 tigers 💪

Troubleshoot

  • if dotnet does not work, install
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install aspnetcore-runtime-3.1

REFERENCES

1 - .NET Core History Install dotnet, aspnetcore-sdk-3.1 Getting Started With ASP.NET Core MVC Apps Using VS Code

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic