C# and .Net in Visual Studio Code ( vscode ) | Set up and Installation Guide | 2023 | IAmUmair

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • This video is about how we can set up a.net and c# in visual studio code. This video can be applied to Linux and Mac based systems. .Net has improved a lot since 2016 and now it provides web, desktop, mobile, console, IoT and machine learning applications development.
    Visual Studio Code is modern and most used IDE in the programming world because of its cross platform nature.
    Timestamp:
    00:00 Introduction
    00:13 Requirements
    00:32 Download .net sdk
    01:42 Verify ''dotnet" in command prompt/terminal
    02:11 Install .net sdk
    03:22 Verify sdk installation
    04:30 Visual studio code
    05:20 Install c# extension
    05:51 .Net command line (CLI)
    06:35 Create new console app
    06:54 Project go through
    07:40 dotnet build
    08:00 dotnet run
    08:20 End
    How to install Visual Studio Code:
    • How to Download and In...

ความคิดเห็น • 261

  • @IAmUmair
    @IAmUmair  ปีที่แล้ว +16

    Check out the latest .Net 8 video
    th-cam.com/video/LZvkBbyhX1w/w-d-xo.htmlsi=FnN0DYetNhApOgJT

    • @my_graphics
      @my_graphics ปีที่แล้ว

      Sir yeh VSCode ki white background theme ka name bata den. Thank You.

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      @@my_graphics piyaray bhai normal light theme hai, ap preferences me jaa k set kr sakty hain

  • @fearline2k
    @fearline2k ปีที่แล้ว +23

    Thanks man, I've been coding for a while now in unity but I still had no clue on how to set this up outside of unity, Thanks! Btw my left ear enjoyed this video very much.

  • @kurtpogi1011
    @kurtpogi1011 ปีที่แล้ว

    Thank you!
    I never thought this is possible until I found your video, thanks man! big help.

  • @aditya_bhai25
    @aditya_bhai25 ปีที่แล้ว +40

    You have no idea how much of my time you've saved. Thanks champ.

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว +1

      Glad to hear it!

  • @matthewscadding5324
    @matthewscadding5324 9 หลายเดือนก่อน +1

    Awesome thank you for this video so helpful in setting up my C# code and .NET!

    • @IAmUmair
      @IAmUmair  9 หลายเดือนก่อน

      Glad it was helpful!

  • @muhammadel3raby924
    @muhammadel3raby924 ปีที่แล้ว +19

    My weak words can't thank you.
    I'm just 14 years old.
    I really appreciate your effort.
    Even I'm from Egypt here watching your informative videos.. AMAZING!
    THANK YOU!!!

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว +1

      Most welcome brother.
      Good luck

  • @firemoont
    @firemoont 10 หลายเดือนก่อน +1

    Thank you! First tutorial I see that is so useful 🤩

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน +1

      Glad it helped, please subscribe for more videos

  • @thanhnguyen-rd7tj
    @thanhnguyen-rd7tj 10 วันที่ผ่านมา

    thank you! very short and easy to understand.

  • @ritakhadka4350
    @ritakhadka4350 ปีที่แล้ว

    Thank You! It was really helpful.

  • @andromedacassiopiea
    @andromedacassiopiea 6 หลายเดือนก่อน

    What a video man that's productive thanks. Keep up

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      Thanks

  • @dokiikod
    @dokiikod ปีที่แล้ว

    thank you for clear demonstration

  • @shoabshah3290
    @shoabshah3290 8 หลายเดือนก่อน

    Thank you for the step by step explanation

  • @NHY6CK
    @NHY6CK ปีที่แล้ว

    Thank you so much, this helped a lot

  • @tronydedra
    @tronydedra ปีที่แล้ว

    Nice job, thank you! Keep going man!

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome, it means a lot

  • @grantolosi
    @grantolosi 11 หลายเดือนก่อน

    Thanks, it was good, short and very usefull, like and subscribed

  • @kisnatoonz6308
    @kisnatoonz6308 ปีที่แล้ว +3

    Thanks a lot ☺️, this is a real video , u can trust on it !

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome 😊

  • @deepalakshmip5520
    @deepalakshmip5520 ปีที่แล้ว

    very short and awesome video. Thanks.

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Glad to know it helped you.

  • @parthpatel3434
    @parthpatel3434 ปีที่แล้ว +1

    Your share information in the video is perfectly workable.. so thank you...⭐⭐⭐⭐⭐

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome brother

  • @Ninjakiw1
    @Ninjakiw1 ปีที่แล้ว +1

    Thank you, I'm warming up to hopefully start my university degree in software engineering soon

  • @uniquesp13
    @uniquesp13 6 หลายเดือนก่อน

    Thank you very much for the video ❤️

    • @IAmUmair
      @IAmUmair  6 หลายเดือนก่อน

      You're welcome 😊

  • @maheswarimanubrolu6042
    @maheswarimanubrolu6042 11 หลายเดือนก่อน

    Thank you Great Eplanation

  • @galacthicc693
    @galacthicc693 ปีที่แล้ว +5

    This tutorial solved all my problems god bless this man 🙏🙏🙏🙏😭

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว +1

      Thanks brother

  • @himanigajjar4238
    @himanigajjar4238 9 หลายเดือนก่อน

    Amazing, thank you very much

    • @IAmUmair
      @IAmUmair  9 หลายเดือนก่อน

      Glad you liked it!

  • @anas-ky2vw
    @anas-ky2vw 22 วันที่ผ่านมา

    I am very thankful

  • @yunusnoori830
    @yunusnoori830 11 หลายเดือนก่อน

    Thanks a lot dude!

  • @itsme-xt8wx
    @itsme-xt8wx ปีที่แล้ว

    Thank You. Well Explained.

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Glad it was helpful!

  • @Track-7002
    @Track-7002 10 หลายเดือนก่อน

    Thank you very much, you helped me, I wish you success

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน

      Glad it helped, thanks

  • @rajuvarma3599
    @rajuvarma3599 8 หลายเดือนก่อน

    Awsome tutorial. Thanks much

    • @IAmUmair
      @IAmUmair  8 หลายเดือนก่อน

      Glad it was helpful!

  • @hotaplays1314
    @hotaplays1314 4 หลายเดือนก่อน

    Thank you dude!

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน +1

      Happy to help!

  • @godboy114
    @godboy114 หลายเดือนก่อน

    thanks for this. I gotta learn C# for my internship next month.

    • @IAmUmair
      @IAmUmair  หลายเดือนก่อน

      Have a nice journey

  • @xsangrezulx
    @xsangrezulx 4 หลายเดือนก่อน

    Thank you so much!

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      You're welcome

  • @b_badr6767
    @b_badr6767 10 หลายเดือนก่อน

    thank you so much ,I appreciate

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน

      thanks, please appreciate by subscribing.

  • @rwhrbh
    @rwhrbh 10 หลายเดือนก่อน

    good job helped a lot!

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน +1

      You're welcome!

  • @TREESHYG30
    @TREESHYG30 4 หลายเดือนก่อน

    Thank you so muchhh!

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      You're welcome!

  • @hemanthkumarng8996
    @hemanthkumarng8996 11 หลายเดือนก่อน

    Sir, you are literally best. Even my paid course didn't teach like this.

    • @IAmUmair
      @IAmUmair  11 หลายเดือนก่อน

      Wow, thanks

  • @Harsh-yh6or
    @Harsh-yh6or ปีที่แล้ว

    100 percent working and full solution and thanks bro

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome brother

  • @l.wayfaring9824
    @l.wayfaring9824 8 หลายเดือนก่อน

    Just Thanks ❤!

    • @IAmUmair
      @IAmUmair  8 หลายเดือนก่อน

      You're welcome 😊

  • @odysseyalin
    @odysseyalin 3 หลายเดือนก่อน

    Thanks bro!

    • @IAmUmair
      @IAmUmair  3 หลายเดือนก่อน

      Welcome

  • @whotfdatguy
    @whotfdatguy ปีที่แล้ว

    thanks boss, you're the man!

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Glad it helped!

  • @sampada843
    @sampada843 ปีที่แล้ว +2

    Thankkkkkkk Youuuuu soo much sir.... your this vdo helps a lot 😭♥️

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome brother
      Glad to know that it helped you

  • @isaiahjohnson7707
    @isaiahjohnson7707 5 หลายเดือนก่อน

    doing us a great service

  • @ajijulislamhridoy9212
    @ajijulislamhridoy9212 3 หลายเดือนก่อน

    Thank you so much

    • @IAmUmair
      @IAmUmair  3 หลายเดือนก่อน

      Welcome

  • @titanspd6234
    @titanspd6234 10 หลายเดือนก่อน

    Thank you, bro👍

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน +1

      Thank you too

  • @chandrikaprasad2046
    @chandrikaprasad2046 9 หลายเดือนก่อน

    it worked for me
    thanks

    • @IAmUmair
      @IAmUmair  9 หลายเดือนก่อน

      You're welcome!

  • @kisenguyen9700
    @kisenguyen9700 ปีที่แล้ว

    Thanks for your help

  • @anhsang9509
    @anhsang9509 3 หลายเดือนก่อน

    the good video, thanks bro

    • @IAmUmair
      @IAmUmair  3 หลายเดือนก่อน

      Thanks brother

  • @upnitsingh08
    @upnitsingh08 5 หลายเดือนก่อน

    thanks bhai
    it works

    • @IAmUmair
      @IAmUmair  5 หลายเดือนก่อน

      Welcome

  • @tadders2172
    @tadders2172 6 หลายเดือนก่อน

    good video, thanks

    • @IAmUmair
      @IAmUmair  6 หลายเดือนก่อน

      welcome

  • @Ravi-cx8ku
    @Ravi-cx8ku 8 หลายเดือนก่อน

    Thanks man

    • @IAmUmair
      @IAmUmair  8 หลายเดือนก่อน

      You're welcome!

  • @anas-ky2vw
    @anas-ky2vw 22 วันที่ผ่านมา

    thanks for this bro

    • @IAmUmair
      @IAmUmair  22 วันที่ผ่านมา

      Welcome bro

  • @PedroSantos-ho5te
    @PedroSantos-ho5te 7 หลายเดือนก่อน

    Thank you;

    • @IAmUmair
      @IAmUmair  7 หลายเดือนก่อน

      You're welcome!

  • @Limstarh
    @Limstarh 10 หลายเดือนก่อน

    Best ever tutorial ❤🔥

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน

      thank you so much

  • @aditya-q3ccebb4
    @aditya-q3ccebb4 11 วันที่ผ่านมา

    good job

  • @ASHISHRAWATLEET
    @ASHISHRAWATLEET 5 หลายเดือนก่อน

    you have my respect bro

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      Thanks

  • @kphakt9136
    @kphakt9136 9 หลายเดือนก่อน

    thank you, my brother! from Russia with Love❤

    • @IAmUmair
      @IAmUmair  8 หลายเดือนก่อน

      Thank you too!

  • @matinsaeed4018
    @matinsaeed4018 4 หลายเดือนก่อน

    thank u bro

    • @IAmUmair
      @IAmUmair  3 หลายเดือนก่อน

      Welcome bro

  • @jushcjz7198
    @jushcjz7198 ปีที่แล้ว

    Really appreciated

  • @vikash4427
    @vikash4427 5 หลายเดือนก่อน

    Thanks brother

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      Welcome

  • @SolidSnakefyp
    @SolidSnakefyp ปีที่แล้ว

    Thanks for helping bro

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome bro

  • @VaishwikVaishnav
    @VaishwikVaishnav 5 หลายเดือนก่อน

    Thank you

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      You're welcome

  • @nickkeen476
    @nickkeen476 ปีที่แล้ว

    Thank you!

  • @rohitkumarsah4877
    @rohitkumarsah4877 ปีที่แล้ว

    Thanks sir 🙏

  • @ankitchaudhary1685
    @ankitchaudhary1685 ปีที่แล้ว

    Thnkyou so much sir

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Most welcome

  • @adarshtripathi033
    @adarshtripathi033 ปีที่แล้ว

    Thanku very much.. ❤

  • @Angurionau
    @Angurionau ปีที่แล้ว

    ❤THANK YOU SO MUCH ❤

  • @lalontech32
    @lalontech32 3 หลายเดือนก่อน

    Thanks

    • @IAmUmair
      @IAmUmair  2 หลายเดือนก่อน

      Welcome

  • @persikosaft
    @persikosaft ปีที่แล้ว

    Thank you!

  • @amirhosseinshafiei6877
    @amirhosseinshafiei6877 6 หลายเดือนก่อน

    Nice

    • @IAmUmair
      @IAmUmair  6 หลายเดือนก่อน

      Thanks

  • @muhdminhaj6679
    @muhdminhaj6679 ปีที่แล้ว

    Thank you 🤗

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome 🤗

  • @gokerveral6713
    @gokerveral6713 ปีที่แล้ว

    dude you have many thanks of mine

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Glad to hear
      Good luck

  • @H.s.c-1
    @H.s.c-1 10 หลายเดือนก่อน

    thanks

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน

      You're welcome!

  • @masterpo1465
    @masterpo1465 ปีที่แล้ว

    Cool... Thanks... Bro

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome bro

  • @abhilashatamrakar4716
    @abhilashatamrakar4716 8 หลายเดือนก่อน

    This is superusefull

    • @IAmUmair
      @IAmUmair  8 หลายเดือนก่อน

      thanks, happy coding!

  • @asthaprajapati2102
    @asthaprajapati2102 ปีที่แล้ว

    thank you.

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      You're welcome

  • @matheusdaveloso2311
    @matheusdaveloso2311 ปีที่แล้ว

    Very thank u

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      You’re welcome 😊

  • @pdxpro7409
    @pdxpro7409 ปีที่แล้ว

    bhagvan bhala ker bhai tara jaisa log bhot help kerta h

  • @karachikyzaiqay8928
    @karachikyzaiqay8928 ปีที่แล้ว

    thanks bro

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Welcome bhai jan

  • @chikcen7
    @chikcen7 ปีที่แล้ว

    Thanks for the video man u saved me

  • @sambitbasu6261
    @sambitbasu6261 11 หลายเดือนก่อน

    Just one question, how does the command line understand which file to execute? In the .Net directory that you created there could be multiple .cs files, so how do I specify what runs using dotnet run?

    • @IAmUmair
      @IAmUmair  11 หลายเดือนก่อน

      dotnet run looks for csproj project file and execute it

  • @dipendrabashyal4743
    @dipendrabashyal4743 ปีที่แล้ว

    brother you are awesome. Thank you so much

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Thank you brother
      It means a lot

  • @nnaemekacasmir6705
    @nnaemekacasmir6705 4 หลายเดือนก่อน

    God bless you

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      Same for u

  • @lovewhenshe
    @lovewhenshe 3 หลายเดือนก่อน

    thank you man. very clear video and very helpful

    • @IAmUmair
      @IAmUmair  3 หลายเดือนก่อน

      Welcome

  • @varungandhi2603
    @varungandhi2603 4 หลายเดือนก่อน

    I've done every step u told , but when I'm going to make my new file and try to run new file, then it always show me the output of first file that system has automatically created when i click dotnet new console, why I'm able to run different programs like i do in all languages in va code

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      Well there's a default file Program.cs in dotnet console app, and it gives output whenever we use dotnet run. It is because this file has the main method(you may not see it because of top level statements enabled) within it.
      If you want to run another file within the same project then add the main method in it. OR use that specific class in the Program.cs file.

  • @davebalanghig7726
    @davebalanghig7726 6 หลายเดือนก่อน

    Can't install 'ms-dotnettools.csdevkit' extension because it is not compatible with the current version of Visual Studio Code (version 1.74.3).
    Please help it always says this even with the pre-realsed and released version

    • @IAmUmair
      @IAmUmair  5 หลายเดือนก่อน

      make sure you have installed the latest version of visual studio code.

  • @narutodihargo
    @narutodihargo 8 หลายเดือนก่อน +2

    00:00= Install vs code, 01:01= .NET sdk, 03:20= .Net checking ,

  • @mikimauz7855
    @mikimauz7855 9 หลายเดือนก่อน

    in the command promt everyting is good but in visual studio code is not. When i type dotnet new it says the command could not be loaded.

    • @IAmUmair
      @IAmUmair  9 หลายเดือนก่อน

      may be you should restart visual studio code.
      by default dotnet gets installed globally, so its commands can work from any location

  • @janrui2477
    @janrui2477 ปีที่แล้ว

    this error shows when i do dotnet new on 6:14 why?
    dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
    was included, verify that the path is correct and try again.

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Please restart your visual studio code or terminal, then try again.

  • @tharealsos7895
    @tharealsos7895 ปีที่แล้ว +2

    7.0 is released so do i need to download 6 or just 7?

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      You can download 7.0 if you want

  • @Gamer-rm6to
    @Gamer-rm6to ปีที่แล้ว

    Do you know why there is a one-line code? When I try to change the print statement it keeps printing out hello world

    • @Gamer-rm6to
      @Gamer-rm6to ปีที่แล้ว

      Nvm I fixed it a great video though

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      One line code can be converted into class, method format.
      If you are getting the same message then clean and rebuild your project before running it.

  • @marvii13
    @marvii13 ปีที่แล้ว +1

    I did the sdk installation and it was recognized in the cmd
    but not recognized in vs code and giving me this error
    dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, ame, or if a path was included, verify that the path is correct and try again.
    plz any help 😥

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว +1

      Can you please restart your visual studio code

    • @marvii13
      @marvii13 ปีที่แล้ว

      @@IAmUmair rlly thank you sir, you saved my life 😭💗💗

    • @user-if7kc9ow6m
      @user-if7kc9ow6m ปีที่แล้ว

      But again same error

    • @littlenightmares7921
      @littlenightmares7921 11 หลายเดือนก่อน

      @@user-if7kc9ow6m Delete the "dotnet" file in Program Files (x86). Then try again

  • @nelsonabuan215
    @nelsonabuan215 ปีที่แล้ว

    on the part that i need to type dotnet new in new terminal it doesn't work on me

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      what message or error you get

  • @shilpaac2883
    @shilpaac2883 10 หลายเดือนก่อน

    Bro in 4:19 after installation also it is showing as not recognized as an internal or external command..what to do?

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน

      bro if sdk got installed successfully, then restart your command prompt, and check again.

  • @OsmanOzdemir-qb2xt
    @OsmanOzdemir-qb2xt ปีที่แล้ว

    I did all the steps as you did without any problems, but I can't run the code files I wrote, it gives an "invalid file" error in the lower right corner of the screen.Could you help me, please

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      I don't know which files you're running.
      For running a c sharp file you need to create project first, if it is console, create a console project, then try to run your project using 'dotnet run'

  • @nehashende7143
    @nehashende7143 10 หลายเดือนก่อน

    The folder is not opening in vs code what should i do?

    • @IAmUmair
      @IAmUmair  10 หลายเดือนก่อน

      can you please open it from vs code top main menu : File -> Open Folder

  • @user-qt4tw2df7b
    @user-qt4tw2df7b 3 หลายเดือนก่อน

    Allah bless you

    • @IAmUmair
      @IAmUmair  2 หลายเดือนก่อน

      Jazak Allah

  • @akazan5500
    @akazan5500 3 หลายเดือนก่อน

    it says Specify which project or solution file to use because this folder contains more than one project or solution file.

    • @IAmUmair
      @IAmUmair  3 หลายเดือนก่อน

      You have created more than one project may be...
      So make sure to go into the project folder, and then run your dotnet command

  • @khotwa-5336
    @khotwa-5336 ปีที่แล้ว

    please i got this Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.. ana when i use the termenal i have got anything

    • @IAmUmair
      @IAmUmair  ปีที่แล้ว

      Webview? Are you using mvc or any other project type?
      I can't answer exactly before knowing all the details and scenario of error.
      Please google your error, you may find the answer that you're looking for

  • @MuneebaMushtaq-jq3pt
    @MuneebaMushtaq-jq3pt หลายเดือนก่อน

    i installed .NET, It shows in cmd but not in visual studio, there is error "The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again."

    • @IAmUmair
      @IAmUmair  หลายเดือนก่อน

      Can you plz restart visual studio code?
      If it's working in cmd, then it should be working in vscode terminal

    • @MuneebaMushtaq-jq3pt
      @MuneebaMushtaq-jq3pt หลายเดือนก่อน

      @@IAmUmair g ho gya ha thanks

  • @user-ll5qj9tj5c
    @user-ll5qj9tj5c หลายเดือนก่อน

    botnet new asp .net core app not showing in Mac, how to resolve it?

    • @IAmUmair
      @IAmUmair  หลายเดือนก่อน +1

      Hi bro, is the dotnet command working on your system?

    • @user-ll5qj9tj5c
      @user-ll5qj9tj5c หลายเดือนก่อน

      @@IAmUmair working fine I can see all templates by dotnet new --list . Thanks

  • @namansingh570
    @namansingh570 4 หลายเดือนก่อน

    Now is 8.0 version can I download it?

    • @IAmUmair
      @IAmUmair  4 หลายเดือนก่อน

      Yes you can. I have already made an updated video for that