How to install asp.net, c# in visual studio code?

ANUPRIYA B 1 Reputation point
2022-03-24T15:53:56.63+00:00

i am trying to install .net in current visual studio code version . Most of the tutorial skip the installing part.
Like they start with installing sdk, or installing c# from visual studio code extensions or skip the installing part and start to show the web creation. From where should i start?

Date of this question on (24-03-2022)

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,236 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,155 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,036 Reputation points
    2022-03-24T16:03:26.717+00:00

    See the following article for what is needed for the basics.

    I have to say it's going with VS Code you will miss out on a lot not using Visual Studio.


  2. Bruce (SqlWork.com) 55,601 Reputation points
    2022-03-24T17:02:17.073+00:00

    to use visual studio code, you just install the .net core sdk. first.

    https://dotnet.microsoft.com/en-us/download

    after install open a terminal window:

     ## check installation of sdks and dotnet in path
     >dotnet --list-sdks
    
        3.1.413 [/usr/local/share/dotnet/sdk]
        6.0.100 [/usr/local/share/dotnet/sdk]
    
    ## add dev cert
    >dotnet dev-certs https
    
    >dotnet dev-certs https --trust
    
    
     ## create a web app and open in visual studio code
    >mkdir webapp
    
    >cd webapp
    
    >dotnet new webapp
    
    >code .
    

    in visual studio code be sure you have installed c# extension.
    it should then ask if you want to install required assets. say yes.
    then run debug