Тёмный

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

IAmUmair
Подписаться 1,7 тыс.
Просмотров 230 тыс.
50% 1

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...

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 261   
@IAmUmair
@IAmUmair Год назад
Check out the latest .Net 8 video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LZvkBbyhX1w.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
@muhammadel3raby924
@muhammadel3raby924 Год назад
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 Год назад
Most welcome brother. Good luck
@kurtpogi1011
@kurtpogi1011 Год назад
Thank you! I never thought this is possible until I found your video, thanks man! big help.
@aditya_bhai25
@aditya_bhai25 Год назад
You have no idea how much of my time you've saved. Thanks champ.
@IAmUmair
@IAmUmair Год назад
Glad to hear it!
@fearline2k
@fearline2k Год назад
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.
@zerocalibur6601
@zerocalibur6601 9 дней назад
true:)
@matthewscadding5324
@matthewscadding5324 8 месяцев назад
Awesome thank you for this video so helpful in setting up my C# code and .NET!
@IAmUmair
@IAmUmair 8 месяцев назад
Glad it was helpful!
@Ninjakiw1
@Ninjakiw1 Год назад
Thank you, I'm warming up to hopefully start my university degree in software engineering soon
@firemoont
@firemoont 10 месяцев назад
Thank you! First tutorial I see that is so useful 🤩
@IAmUmair
@IAmUmair 10 месяцев назад
Glad it helped, please subscribe for more videos
@ritakhadka4350
@ritakhadka4350 Год назад
Thank You! It was really helpful.
@andromedacassiopiea
@andromedacassiopiea 5 месяцев назад
What a video man that's productive thanks. Keep up
@IAmUmair
@IAmUmair 4 месяца назад
Thanks
@shoabshah3290
@shoabshah3290 7 месяцев назад
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
@dokiikod
@dokiikod Год назад
thank you for clear demonstration
@grantolosi
@grantolosi 10 месяцев назад
Thanks, it was good, short and very usefull, like and subscribed
@godboy114
@godboy114 27 дней назад
thanks for this. I gotta learn C# for my internship next month.
@IAmUmair
@IAmUmair 22 дня назад
Have a nice journey
@galacthicc693
@galacthicc693 Год назад
This tutorial solved all my problems god bless this man 🙏🙏🙏🙏😭
@IAmUmair
@IAmUmair Год назад
Thanks brother
@hemanthkumarng8996
@hemanthkumarng8996 10 месяцев назад
Sir, you are literally best. Even my paid course didn't teach like this.
@IAmUmair
@IAmUmair 10 месяцев назад
Wow, thanks
@anas-ky2vw
@anas-ky2vw 5 дней назад
I am very thankful
@kisnatoonz6308
@kisnatoonz6308 Год назад
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.
@yunusnoori830
@yunusnoori830 11 месяцев назад
Thanks a lot dude!
@maheswarimanubrolu6042
@maheswarimanubrolu6042 11 месяцев назад
Thank you Great Eplanation
@rwhrbh
@rwhrbh 10 месяцев назад
good job helped a lot!
@IAmUmair
@IAmUmair 10 месяцев назад
You're welcome!
@parthpatel3434
@parthpatel3434 Год назад
Your share information in the video is perfectly workable.. so thank you...⭐⭐⭐⭐⭐
@IAmUmair
@IAmUmair Год назад
Welcome brother
@uniquesp13
@uniquesp13 5 месяцев назад
Thank you very much for the video ❤️
@IAmUmair
@IAmUmair 5 месяцев назад
You're welcome 😊
@itsme-xt8wx
@itsme-xt8wx Год назад
Thank You. Well Explained.
@IAmUmair
@IAmUmair Год назад
Glad it was helpful!
@rajuvarma3599
@rajuvarma3599 7 месяцев назад
Awsome tutorial. Thanks much
@IAmUmair
@IAmUmair 7 месяцев назад
Glad it was helpful!
@himanigajjar4238
@himanigajjar4238 9 месяцев назад
Amazing, thank you very much
@IAmUmair
@IAmUmair 9 месяцев назад
Glad you liked it!
@anhsang9509
@anhsang9509 2 месяца назад
the good video, thanks bro
@IAmUmair
@IAmUmair 2 месяца назад
Thanks brother
@odysseyalin
@odysseyalin 3 месяца назад
Thanks bro!
@IAmUmair
@IAmUmair 3 месяца назад
Welcome
@hotaplays1314
@hotaplays1314 3 месяца назад
Thank you dude!
@IAmUmair
@IAmUmair 3 месяца назад
Happy to help!
@whotfdatguy
@whotfdatguy Год назад
thanks boss, you're the man!
@IAmUmair
@IAmUmair Год назад
Glad it helped!
@sambitbasu6261
@sambitbasu6261 10 месяцев назад
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 10 месяцев назад
dotnet run looks for csproj project file and execute it
@kisenguyen9700
@kisenguyen9700 Год назад
Thanks for your help
@TREESHYG30
@TREESHYG30 4 месяца назад
Thank you so muchhh!
@IAmUmair
@IAmUmair 4 месяца назад
You're welcome!
@Track-7002
@Track-7002 10 месяцев назад
Thank you very much, you helped me, I wish you success
@IAmUmair
@IAmUmair 10 месяцев назад
Glad it helped, thanks
@xsangrezulx
@xsangrezulx 4 месяца назад
Thank you so much!
@IAmUmair
@IAmUmair 4 месяца назад
You're welcome
@isaiahjohnson7707
@isaiahjohnson7707 4 месяца назад
doing us a great service
@anas-ky2vw
@anas-ky2vw 5 дней назад
thanks for this bro
@IAmUmair
@IAmUmair 5 дней назад
Welcome bro
@kphakt9136
@kphakt9136 8 месяцев назад
thank you, my brother! from Russia with Love❤
@IAmUmair
@IAmUmair 8 месяцев назад
Thank you too!
@sampada843
@sampada843 Год назад
Thankkkkkkk Youuuuu soo much sir.... your this vdo helps a lot 😭♥️
@IAmUmair
@IAmUmair Год назад
Welcome brother Glad to know that it helped you
@b_badr6767
@b_badr6767 10 месяцев назад
thank you so much ,I appreciate
@IAmUmair
@IAmUmair 10 месяцев назад
thanks, please appreciate by subscribing.
@Harsh-yh6or
@Harsh-yh6or Год назад
100 percent working and full solution and thanks bro
@IAmUmair
@IAmUmair Год назад
Welcome brother
@tadders2172
@tadders2172 6 месяцев назад
good video, thanks
@IAmUmair
@IAmUmair 6 месяцев назад
welcome
@ajijulislamhridoy9212
@ajijulislamhridoy9212 3 месяца назад
Thank you so much
@IAmUmair
@IAmUmair 3 месяца назад
Welcome
@upnitsingh08
@upnitsingh08 5 месяцев назад
thanks bhai it works
@IAmUmair
@IAmUmair 5 месяцев назад
Welcome
@ASHISHRAWATLEET
@ASHISHRAWATLEET 4 месяца назад
you have my respect bro
@IAmUmair
@IAmUmair 4 месяца назад
Thanks
@l.wayfaring9824
@l.wayfaring9824 7 месяцев назад
Just Thanks ❤!
@IAmUmair
@IAmUmair 7 месяцев назад
You're welcome 😊
@Limstarh
@Limstarh 9 месяцев назад
Best ever tutorial ❤🔥
@IAmUmair
@IAmUmair 9 месяцев назад
thank you so much
@titanspd6234
@titanspd6234 9 месяцев назад
Thank you, bro👍
@IAmUmair
@IAmUmair 9 месяцев назад
Thank you too
@Ravi-cx8ku
@Ravi-cx8ku 7 месяцев назад
Thanks man
@IAmUmair
@IAmUmair 7 месяцев назад
You're welcome!
@chandrikaprasad2046
@chandrikaprasad2046 8 месяцев назад
it worked for me thanks
@IAmUmair
@IAmUmair 8 месяцев назад
You're welcome!
@pdxpro7409
@pdxpro7409 Год назад
bhagvan bhala ker bhai tara jaisa log bhot help kerta h
@amirhosseinshafiei6877
@amirhosseinshafiei6877 6 месяцев назад
Nice
@IAmUmair
@IAmUmair 6 месяцев назад
Thanks
@PedroSantos-ho5te
@PedroSantos-ho5te 6 месяцев назад
Thank you;
@IAmUmair
@IAmUmair 6 месяцев назад
You're welcome!
@narutodihargo
@narutodihargo 7 месяцев назад
00:00= Install vs code, 01:01= .NET sdk, 03:20= .Net checking ,
@SolidSnakefyp
@SolidSnakefyp Год назад
Thanks for helping bro
@IAmUmair
@IAmUmair Год назад
Welcome bro
@vikash4427
@vikash4427 4 месяца назад
Thanks brother
@IAmUmair
@IAmUmair 4 месяца назад
Welcome
@davebalanghig7726
@davebalanghig7726 5 месяцев назад
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.
@rohitkumarsah4877
@rohitkumarsah4877 Год назад
Thanks sir 🙏
@varungandhi2603
@varungandhi2603 3 месяца назад
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 3 месяца назад
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.
@jushcjz7198
@jushcjz7198 Год назад
Really appreciated
@IAmUmair
@IAmUmair Год назад
Thanks
@matinsaeed4018
@matinsaeed4018 3 месяца назад
thank u bro
@IAmUmair
@IAmUmair 3 месяца назад
Welcome bro
@navneetyadav09
@navneetyadav09 11 месяцев назад
thank u so much brother.
@IAmUmair
@IAmUmair 10 месяцев назад
So nice of you
@persikosaft
@persikosaft Год назад
Thank you!
@IAmUmair
@IAmUmair Год назад
Welcome
@VaishwikVaishnav
@VaishwikVaishnav 4 месяца назад
Thank you
@IAmUmair
@IAmUmair 4 месяца назад
You're welcome
@nickkeen476
@nickkeen476 Год назад
Thank you!
@IAmUmair
@IAmUmair Год назад
Welcome!
@masterpo1465
@masterpo1465 Год назад
Cool... Thanks... Bro
@IAmUmair
@IAmUmair Год назад
Welcome bro
@lovewhenshe
@lovewhenshe 3 месяца назад
thank you man. very clear video and very helpful
@IAmUmair
@IAmUmair 3 месяца назад
Welcome
@gokerveral6713
@gokerveral6713 Год назад
dude you have many thanks of mine
@IAmUmair
@IAmUmair Год назад
Glad to hear Good luck
@ankitchaudhary1685
@ankitchaudhary1685 Год назад
Thnkyou so much sir
@IAmUmair
@IAmUmair Год назад
Most welcome
@janrui2477
@janrui2477 11 месяцев назад
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 11 месяцев назад
Please restart your visual studio code or terminal, then try again.
@Angurionau
@Angurionau Год назад
❤THANK YOU SO MUCH ❤
@IAmUmair
@IAmUmair Год назад
Welcome
@adarshtripathi033
@adarshtripathi033 Год назад
Thanku very much.. ❤
@IAmUmair
@IAmUmair Год назад
Welcome
@chikcen7
@chikcen7 Год назад
Thanks for the video man u saved me
@marvii13
@marvii13 Год назад
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 Год назад
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 10 месяцев назад
@@user-if7kc9ow6m Delete the "dotnet" file in Program Files (x86). Then try again
@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
@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
@muhdminhaj6679
@muhdminhaj6679 Год назад
Thank you 🤗
@IAmUmair
@IAmUmair Год назад
Welcome 🤗
@abhilashatamrakar4716
@abhilashatamrakar4716 8 месяцев назад
This is superusefull
@IAmUmair
@IAmUmair 8 месяцев назад
thanks, happy coding!
@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.
@lalontech32
@lalontech32 2 месяца назад
Thanks
@IAmUmair
@IAmUmair Месяц назад
Welcome
@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'
@nnaemekacasmir6705
@nnaemekacasmir6705 3 месяца назад
God bless you
@IAmUmair
@IAmUmair 3 месяца назад
Same for u
@H.s.c-1
@H.s.c-1 9 месяцев назад
thanks
@IAmUmair
@IAmUmair 9 месяцев назад
You're welcome!
@shilpaac2883
@shilpaac2883 9 месяцев назад
Bro in 4:19 after installation also it is showing as not recognized as an internal or external command..what to do?
@IAmUmair
@IAmUmair 9 месяцев назад
bro if sdk got installed successfully, then restart your command prompt, and check again.
@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
@matheusdaveloso2311
@matheusdaveloso2311 Год назад
Very thank u
@IAmUmair
@IAmUmair Год назад
You’re welcome 😊
@asthaprajapati2102
@asthaprajapati2102 Год назад
thank you.
@IAmUmair
@IAmUmair Год назад
You're welcome
@tharealsos7895
@tharealsos7895 Год назад
7.0 is released so do i need to download 6 or just 7?
@IAmUmair
@IAmUmair Год назад
You can download 7.0 if you want
@dipendrabashyal4743
@dipendrabashyal4743 Год назад
brother you are awesome. Thank you so much
@IAmUmair
@IAmUmair Год назад
Thank you brother It means a lot
@karachikyzaiqay8928
@karachikyzaiqay8928 Год назад
thanks bro
@IAmUmair
@IAmUmair Год назад
Welcome bhai jan
@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
@uday_talks
@uday_talks Год назад
Hi bro Iam installed both dotnet-sdk-6.0.406-win-x64 VDCodeUserSetup-x64-1.75.1 But in the command prompt showing no SDK were found
@IAmUmair
@IAmUmair Год назад
Hi bro please verify that you have installed as per instructions in the video or not, then please let me know if issue persists
@uday_talks
@uday_talks Год назад
@@IAmUmair iam installed as per the video but showing like that only
@luhencedbi1895
@luhencedbi1895 11 месяцев назад
@@uday_talks same case!
@littlenightmares7921
@littlenightmares7921 10 месяцев назад
​@@luhencedbi1895 ​ Delete the "dotnet" file in Program Files (x86). Then try again
@akazan5500
@akazan5500 2 месяца назад
it says Specify which project or solution file to use because this folder contains more than one project or solution file.
@IAmUmair
@IAmUmair 2 месяца назад
You have created more than one project may be... So make sure to go into the project folder, and then run your dotnet command
@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
@Habiba-mn7sj
@Habiba-mn7sj Месяц назад
When I run dotnet build ,it's build failed even though the prior process was alright
@IAmUmair
@IAmUmair Месяц назад
The build will provide failure reasons. Can you plz share those
@zvroblox
@zvroblox Год назад
bro when im trying to type dotnet in the console then it say "zsh: command not found: .net"
@IAmUmair
@IAmUmair Год назад
you are typing .net i think, instead you need to type 'dotnet'
@user-if7kc9ow6m
@user-if7kc9ow6m Год назад
I have a problem I followed all steps but when I write dotnet new in terminal an error occurred "the command could not be loaded" please help me🙏
@IAmUmair
@IAmUmair Год назад
Can you please confirm this command from command prompt? I believe you need to restart your visual studio code, and try again
@user-if7kc9ow6m
@user-if7kc9ow6m Год назад
This command work in command prompt and I also restarted it
@IAmUmair
@IAmUmair Год назад
Then it should work in vscode terminal
@user-if7kc9ow6m
@user-if7kc9ow6m Год назад
I used it in vs code terminal but same error occurred
@IAmUmair
@IAmUmair Год назад
Well it's quite strange that it's working in command prompt but not in vs code terminal.
Далее
How to Run C# in Visual Studio Code on Windows 10 2022
10:12
UZmir & Mira - Qani qani (Snippet)
00:26
Просмотров 526 тыс.
Dancing makes everything better 🕺🏼
00:16
Просмотров 2,3 млн
How to Setup C# in Visual Studio Code Full Setup
4:33
Просмотров 220 тыс.
Visual Studio Code for .NET
23:31
Просмотров 38 тыс.
Is Writing C# on a Mac Realistic? How About Linux?
11:18
VS Code Tutorial For C# Developers
39:22
Просмотров 16 тыс.
Visual Studio Code for C# Developers | .NET Conf 2022
26:33
Writing C# in VS Code Is Finally Awesome!
7:48
Просмотров 157 тыс.