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)

Windows for business Windows Client for IT Pros User experience Other
Developer technologies C#
{count} votes

2 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    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) 77,686 Reputation points Volunteer Moderator
    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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.