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...
Check out the latest .Net 8 video
th-cam.com/video/LZvkBbyhX1w/w-d-xo.htmlsi=FnN0DYetNhApOgJT
Sir yeh VSCode ki white background theme ka name bata den. Thank You.
@@my_graphics piyaray bhai normal light theme hai, ap preferences me jaa k set kr sakty hain
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.
true:)
Thank you!
I never thought this is possible until I found your video, thanks man! big help.
You have no idea how much of my time you've saved. Thanks champ.
Glad to hear it!
Awesome thank you for this video so helpful in setting up my C# code and .NET!
Glad it was helpful!
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!!!
Most welcome brother.
Good luck
Thank you! First tutorial I see that is so useful 🤩
Glad it helped, please subscribe for more videos
thank you! very short and easy to understand.
Thank You! It was really helpful.
What a video man that's productive thanks. Keep up
Thanks
thank you for clear demonstration
Thank you for the step by step explanation
Thank you so much, this helped a lot
Nice job, thank you! Keep going man!
Welcome, it means a lot
Thanks, it was good, short and very usefull, like and subscribed
Thanks a lot ☺️, this is a real video , u can trust on it !
Welcome 😊
very short and awesome video. Thanks.
Glad to know it helped you.
Your share information in the video is perfectly workable.. so thank you...⭐⭐⭐⭐⭐
Welcome brother
Thank you, I'm warming up to hopefully start my university degree in software engineering soon
Thank you very much for the video ❤️
You're welcome 😊
Thank you Great Eplanation
This tutorial solved all my problems god bless this man 🙏🙏🙏🙏😭
Thanks brother
Amazing, thank you very much
Glad you liked it!
I am very thankful
Thanks a lot dude!
Thank You. Well Explained.
Glad it was helpful!
Thank you very much, you helped me, I wish you success
Glad it helped, thanks
Awsome tutorial. Thanks much
Glad it was helpful!
Thank you dude!
Happy to help!
thanks for this. I gotta learn C# for my internship next month.
Have a nice journey
Thank you so much!
You're welcome
thank you so much ,I appreciate
thanks, please appreciate by subscribing.
good job helped a lot!
You're welcome!
Thank you so muchhh!
You're welcome!
Sir, you are literally best. Even my paid course didn't teach like this.
Wow, thanks
100 percent working and full solution and thanks bro
Welcome brother
Just Thanks ❤!
You're welcome 😊
Thanks bro!
Welcome
thanks boss, you're the man!
Glad it helped!
Thankkkkkkk Youuuuu soo much sir.... your this vdo helps a lot 😭♥️
Welcome brother
Glad to know that it helped you
doing us a great service
Thank you so much
Welcome
Thank you, bro👍
Thank you too
it worked for me
thanks
You're welcome!
Thanks for your help
the good video, thanks bro
Thanks brother
thanks bhai
it works
Welcome
good video, thanks
welcome
Thanks man
You're welcome!
thanks for this bro
Welcome bro
Thank you;
You're welcome!
Best ever tutorial ❤🔥
thank you so much
good job
you have my respect bro
Thanks
thank you, my brother! from Russia with Love❤
Thank you too!
thank u bro
Welcome bro
Really appreciated
Thanks
Thanks brother
Welcome
Thanks for helping bro
Welcome bro
Thank you
You're welcome
Thank you!
Welcome!
Thanks sir 🙏
Thnkyou so much sir
Most welcome
Thanku very much.. ❤
Welcome
❤THANK YOU SO MUCH ❤
Welcome
Thanks
Welcome
Thank you!
Welcome
Nice
Thanks
Thank you 🤗
Welcome 🤗
dude you have many thanks of mine
Glad to hear
Good luck
thanks
You're welcome!
Cool... Thanks... Bro
Welcome bro
This is superusefull
thanks, happy coding!
thank you.
You're welcome
Very thank u
You’re welcome 😊
bhagvan bhala ker bhai tara jaisa log bhot help kerta h
thanks bro
Welcome bhai jan
Thanks for the video man u saved me
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?
dotnet run looks for csproj project file and execute it
brother you are awesome. Thank you so much
Thank you brother
It means a lot
God bless you
Same for u
thank you man. very clear video and very helpful
Welcome
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
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.
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
make sure you have installed the latest version of visual studio code.
00:00= Install vs code, 01:01= .NET sdk, 03:20= .Net checking ,
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.
may be you should restart visual studio code.
by default dotnet gets installed globally, so its commands can work from any location
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.
Please restart your visual studio code or terminal, then try again.
7.0 is released so do i need to download 6 or just 7?
You can download 7.0 if you want
Do you know why there is a one-line code? When I try to change the print statement it keeps printing out hello world
Nvm I fixed it a great video though
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.
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 😥
Can you please restart your visual studio code
@@IAmUmair rlly thank you sir, you saved my life 😭💗💗
But again same error
@@user-if7kc9ow6m Delete the "dotnet" file in Program Files (x86). Then try again
on the part that i need to type dotnet new in new terminal it doesn't work on me
what message or error you get
Bro in 4:19 after installation also it is showing as not recognized as an internal or external command..what to do?
bro if sdk got installed successfully, then restart your command prompt, and check again.
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
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'
The folder is not opening in vs code what should i do?
can you please open it from vs code top main menu : File -> Open Folder
Allah bless you
Jazak Allah
it says Specify which project or solution file to use because this folder contains more than one project or solution file.
You have created more than one project may be...
So make sure to go into the project folder, and then run your dotnet command
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
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
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."
Can you plz restart visual studio code?
If it's working in cmd, then it should be working in vscode terminal
@@IAmUmair g ho gya ha thanks
botnet new asp .net core app not showing in Mac, how to resolve it?
Hi bro, is the dotnet command working on your system?
@@IAmUmair working fine I can see all templates by dotnet new --list . Thanks
Now is 8.0 version can I download it?
Yes you can. I have already made an updated video for that