Intro to VSCode for C# Developers - From Installation to Debugging

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 586

  • @GUARD3EN
    @GUARD3EN 4 года назад +22

    You saved my bacon. I'm in a coding bootcamp situation, and the instructor just flew threw this. I managed to keep up at the time, but I couldn't later remember the way for projects to reference one another. Thanks!

    • @IAmTimCorey
      @IAmTimCorey  4 года назад +2

      I am glad it was so helpful.

  • @tyrrelldavis9919
    @tyrrelldavis9919 4 года назад +61

    17:44 solution creation on the command line part
    20:50 globbing pattern and adding .sln
    39:00 nuget explanation
    39:50 nuget

  • @runtomrun
    @runtomrun 4 года назад +15

    This is a fantastic intro to vscode in general, I learned so much from this I couldn't find anywhere else. Thank you

    • @IAmTimCorey
      @IAmTimCorey  4 года назад +1

      You are welcome.

    • @stevenh.jacobs8754
      @stevenh.jacobs8754 3 года назад

      I agree. Even though .NET 5 is out, learning how to set up projects in a solution and associating references to other classes was a mystery. The tutorials I found didn't explain how to do these things. Good job, Tim!

  • @snoracle4926
    @snoracle4926 4 года назад +10

    I have only been studying C# and using Visual Studio the past 2 weeks, but one thing I'd say Visual Code does well for a beginner who is willing to take a little extra step is at least partially disambiguate the "magic" of how C# programs work compared to the perhaps overly behind the scenes nature of Visual Studio. It allows you to use a powerful text editor for programming and IntelliSense, and also makes it so you can't rely on Visual Studio but instead set it up projects yourself. I've got a lot of learning, but this helped me get going in the right direction. Thanks

  • @ryanpruneau4937
    @ryanpruneau4937 3 года назад +5

    I've got very little experience with programming. Ive been trying to figure out how to get started creating something basic, I have not quite seen where this all leads, but as far as operating VScode, this is by far the best tutorial I have come accross.
    I can follow these steps to a T and get the same results.
    Fantastic. Thanks for your help

    • @tomthelestaff-iamtimcorey7597
      @tomthelestaff-iamtimcorey7597 3 года назад +1

      If you have not already, be sure to check out this video - ruclips.net/video/LUv20QxXjfw/видео.html It is intended to help you assess where you are and the topics you need to add to your base skills. We hope it will help you plan your personal journey. Tim's goal is to make becoming a developer easier and we hope we can help you be successful through your full journey!

    • @gururajaraghavendrarao3362
      @gururajaraghavendrarao3362 8 месяцев назад

      @@tomthelestaff-iamtimcorey7597 You are always great

  • @stargazer2350
    @stargazer2350 4 года назад +13

    DUDE! That cmd trick is amazing. Instant sub. Tysm.

  • @AngriestEwok
    @AngriestEwok 2 года назад

    THANK YOU! I've been tairing my hair out trying to sort all this nonsense out. New to C# DotNet, etc and the documentation really doesn't seem to cover this, which is NUTS but your video told me exactly what the problem was. I had no concept of a 'solution' and I still don't really understand what it is (meta project? workspace?) so this got me started, thanks! Subbed.

    • @IAmTimCorey
      @IAmTimCorey  2 года назад

      I am glad it was helpful. A solution is mainly just a "bucket" that keeps your projects together to make life easier. The solution doesn't actually connect the projects to each other. It just allows you to manage them together.

  • @nishant9210
    @nishant9210 5 лет назад +5

    27:40 Time Saver: if you got Stuck while Debugging. Thanks a lot Tim you have covered everything.

  • @valenciennesgilles3711
    @valenciennesgilles3711 2 года назад +1

    Arf, the first video with wich i succeeded in debug properly, many, many thanks

  • @alieltoney
    @alieltoney 3 года назад

    This video is brilliant. I was stuck with bunch of errors again and again , then i found this video uninstalled my apps , the follow your instructions and now everything is working well. Thanks so much

  • @sondreaurlund
    @sondreaurlund 2 года назад +1

    16:00 What`s supossed to be the right folder?!? I created a folder called VSCodeintro just like him ,but I got this message/error when i typed: dotnet new sln -n "VScodeintro": 'dotnet' is not recognized as an internal or external command,
    operable program or batch file.
    pleas help
    🙏

    • @IAmTimCorey
      @IAmTimCorey  2 года назад

      It sounds like you don't have the .NET Core SDK installed on your machine. Here is a link to install .NET 6: dotnet.microsoft.com/en-us/download

  • @CanadaRulez4Ever
    @CanadaRulez4Ever 5 лет назад +10

    this is definitely a missing intro for Visual Studio developers who may need to migrate to VSCode and understand how to do basic things within a solution, thank you!

    • @IAmTimCorey
      @IAmTimCorey  5 лет назад

      You are most welcome. Thanks for watching.

  • @guillermodanielmazzarigiov1768
    @guillermodanielmazzarigiov1768 2 года назад

    Thanks so much for this, my crappy PC runs visual studio 2022 super slow, but vs code runs great, now I feel confident enough to use vs code without missing any visual studio features

    • @IAmTimCorey
      @IAmTimCorey  2 года назад +1

      Glad I could help!

    • @guillermodanielmazzarigiov1768
      @guillermodanielmazzarigiov1768 2 года назад

      @@IAmTimCorey Is there a way to add a frontend to a console app, I'm doing an assignment in a console app, I have to create a list of movies and videogames and display the titles, authors, seasons/hours and some more stuff, I have the console app ready, it works perfectly and displays everything in the terminal, I want to know if it is possible to link an html page and use css to style it and perhaps some JavaScript for animations, hope you can answer, thanks for your awesome Chanel bro! I've learned a lot!

    • @IAmTimCorey
      @IAmTimCorey  2 года назад +1

      Not really, but if you move your logic from the Console app over to a class library, and only do UI-focused work in the console (the actual WriteLine and ReadLine calls), you can then reference that class library from a web project UI and reuse all of your logic and data access code.

    • @guillermodanielmazzarigiov1768
      @guillermodanielmazzarigiov1768 2 года назад

      @@IAmTimCorey I'll definitely check that out!

  • @WorldReserveCurrency
    @WorldReserveCurrency 4 года назад +1

    This is the very best intro on C# projects for VSCode. Thanks!!

  • @NwayNwayPhoneMo
    @NwayNwayPhoneMo Год назад

    thanks Tim. It was very clear. I will keep coming back to you.

  • @oguzonay2903
    @oguzonay2903 4 года назад

    I am trying to change the path of my career. I am working on CFD for ten years and solving fluid dynamics equation systems using FORTRAN in Linux systems (yeah I know It sounds too old school). These C# videos are really clear and believe me that they make me feel like a passionate young engineer. Really really thank you.

    • @IAmTimCorey
      @IAmTimCorey  4 года назад +1

      Fantastic! That is great to hear.

  • @KenPlatenak
    @KenPlatenak 4 года назад

    Thank you @IAmTimCorey. Very informative and helpful video from the perspective of a Visual Studio Professional / C# user perspective switching to Visual Studio Code.

    • @KenPlatenak
      @KenPlatenak 4 года назад

      You mention toward the end to share any additional extension that one finds useful. One of my favorites is the "vscode-solution-explorer". This added yet another degree of familiarity to me versus the standard explorer.

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      Thanks for sharing.

  • @Dominichii7
    @Dominichii7 3 года назад

    I really appreciate this short and sweet video (sorry, I watched at 1.5 speed lol). Just now getting into C# and this helped tremendously. Great job explaining everything and making it all easy to comprehend

    • @IAmTimCorey
      @IAmTimCorey  3 года назад

      I am glad it was so helpful.

  • @TheNoar12
    @TheNoar12 10 месяцев назад

    I don't know why I was sure that sln was not possible to use with vs code. Thank you for showing me that vs code is indeed a real usable tool

    • @IAmTimCorey
      @IAmTimCorey  10 месяцев назад

      I am glad it was helpful.

  • @gangadharmahindrakar4264
    @gangadharmahindrakar4264 4 года назад

    Hi Tim, i am fan of your in first Video only. i love to learn from you. so now onward i will watch all the your tutorial & i will fallow the VS Code learning. Thanks.

  • @shawnmofid7131
    @shawnmofid7131 5 лет назад +1

    Thank you so much for the video. I really like VScode. I have Visual Studio Community, but I used VSCode to quickly run some Java code, and validate something. It gives you everything you need and the capability to install what you'll need later. I enjoy using it. I really like the Git support on it, and the fact that you can run it on machines you may not have admin access.

  • @spencerkaneki3031
    @spencerkaneki3031 4 года назад

    Thank you Tim so much for taking the time out of your day to teach us how to setup VSCode for C#.

  • @niklasbergkvist1595
    @niklasbergkvist1595 3 года назад

    Great intro to start use VS Code - really saving some time for those simple things you need to know to start! Thank you Tim :)

  • @hasithagajanayake5026
    @hasithagajanayake5026 2 года назад

    Great tutorial. Your videos always are a great place to learn coding-related stuff.

  • @rohitjagannath5331
    @rohitjagannath5331 4 года назад

    Brilliant!! So simple and easy to understand for beginners!!

  • @MikeBachful
    @MikeBachful 4 года назад +6

    This video explains everything so clearly, thanks so much!

  • @anugerahmodif9894
    @anugerahmodif9894 3 года назад

    waw, nice intro for a newcomer like me
    and so easy to get it
    nice work dude!!

  •  3 года назад

    Thank you for sharing your knowledge, that video it's essential for start programming into vscode...

  • @shaikhgunjan6952
    @shaikhgunjan6952 3 года назад

    Thanks really nice one. Solved my issue of shifting from Visual studio IDE to Visual Code.

  • @hambaghini
    @hambaghini 5 лет назад

    Nice video Tim! I've used VS Code for C# Development in the past(love the UI Design of it) but always find myself reverting to Visual Studio as my daily 'workhorse'. Both are great at the end of the day!

    • @IAmTimCorey
      @IAmTimCorey  5 лет назад +2

      Yep, if you have the option, Visual Studio is a much more powerful option for developing C#. The benefit of VSCode is that it works on any platform, not just Windows.

  • @RobvandenBerg290569
    @RobvandenBerg290569 3 года назад

    this is EXACTLY what I need!
    subbed

  • @pldvs
    @pldvs 4 года назад +1

    I was out in the wilderness until this video. Thankyou!

  • @drippymissouri
    @drippymissouri 3 года назад

    it wont work for me. when i type in the dotnet solution thing, it pulls up "'dotnet' is not reconized as an internal or external command, operable program or batch file"

    • @IAmTimCorey
      @IAmTimCorey  3 года назад

      It sounds like you either do not have the .NET Core SDK installed or you do not have it properly on your PATH. Check first that it is installed and then check your PATH to be sure that there is a reference in there to the directory where the .NET Core SDK is installed.

    • @drippymissouri
      @drippymissouri 3 года назад

      Can you be mor clear i have only done scratch programming

    • @drippymissouri
      @drippymissouri 3 года назад

      @@IAmTimCorey ok now i know how to do it

  • @rsouthworth
    @rsouthworth 4 года назад

    Thank you for taking the time to produce this helpful video.

  • @amirhosseinahmadi3706
    @amirhosseinahmadi3706 5 лет назад

    You sir, definitely deserve a lot more subscribers.

  • @notzaryab717
    @notzaryab717 5 лет назад +6

    Thanks a lot, was very interesting explanation, I learned something new this day, and I am happy.

  • @joseantoniocarreraescobar5856
    @joseantoniocarreraescobar5856 3 года назад

    Thank you so much for sharing this kind of content, I am very impressed about the all things that VS Code can do

  • @Vir7uaLGameplays
    @Vir7uaLGameplays 3 года назад

    This is just a superb tutorial...I wish my professor was this clear...thank you so much!

  • @ayanantaganguly488
    @ayanantaganguly488 4 года назад

    Very nice tutorial Tim. Was exactly looking for something like this.

  • @gururajaraghavendrarao3362
    @gururajaraghavendrarao3362 8 месяцев назад

    your training videos are very helpful for my development

  • @alcidesneto6415
    @alcidesneto6415 3 года назад

    Again, thank you so much, Tim. My company decided to not buy a VS license, so instead of installing the Community version and risking my job, I prefer to use VS Code and work exclusivity with console projects. Unfortunately, that's all I can afford right now.

  • @lea-anon
    @lea-anon Год назад

    18:15
    'dotnet' is not recognized as an internal or external command, operable program or batch file.
    What do I do? Yes I am a total beginner lol.

    • @IAmTimCorey
      @IAmTimCorey  Год назад

      Download the .NET 6 or .NET 7 SDK (not .NET 8 yet - it is in preview) from here: dotnet.microsoft.com/en-us/download/visual-studio-sdks

  • @cd1788
    @cd1788 4 года назад +1

    Thank you so much! I was getting a little lost using C# with VS Code.

  • @kevinwijaya474
    @kevinwijaya474 4 года назад +2

    in my C: i dont have Temp\VSCodeIntro
    when try find the temp folder in C -> user ->appdata -> local -> temp and create new folder VSCodeIntro. i cant do dotnet command :"(

    • @IAmTimCorey
      @IAmTimCorey  4 года назад +1

      That path is one I created on my machine. You have to create the path on your machine (the path does not have to be the same) and then you can follow along. The path will just be unique to you. As for not being able to do the dotnet command, it sounds like you might not have the .NET Core SDK installed. You can install the latest version here: dotnet.microsoft.com/download

    • @chaithradevadiga7387
      @chaithradevadiga7387 4 года назад

      @@IAmTimCorey Thanks Tim

  • @nomadshiba
    @nomadshiba 4 года назад +8

    btw you can use (shift + right-click) on in the folder window then select "Open PowerShell window here"
    then you can just create your project (dotnet new console -n test)
    and open it with code (code test)
    idk its faster for me c:

  • @kristofferhogberg8011
    @kristofferhogberg8011 3 года назад

    This was exactly what I needed , thank you!

  • @materiallize4799
    @materiallize4799 4 года назад +1

    Please help me i cant find the vscodeintro folder to open cmd in

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      I created that folder. You can do the demo in any folder you want.

    • @materiallize4799
      @materiallize4799 4 года назад

      @@IAmTimCorey oh thank you so much

  • @Enthriex
    @Enthriex 3 года назад

    Uhm, I have a question. I'm following around 19:30 but, everytime I write "dir" it says "command not found", do you know why would that be?
    I also tried doing the code . to open visual code but it also says "command not found" like "-bash: Code:: command not found"

    • @IAmTimCorey
      @IAmTimCorey  3 года назад

      Ah, you are using bash, probably on Linux or Mac. You would do "ls" instead of dir. As for the "code ." not opening VSCode, it needs to be registered in your operating system. I'm not sure how you would do that in your OS.

  • @clarklu4649
    @clarklu4649 3 года назад

    Thank you so much for this helpful video! I'm loving VS Code.

  • @dotun32
    @dotun32 3 года назад

    thank you Tim, you really gave me what I needed to kick start.

  • @tvguideondemand
    @tvguideondemand 4 года назад +1

    33:34 Does anyone know how to make the bracket go to a new line when you press enter? I know Control + K + F will do this and you can do it on save, but immediately on enter would be nice.

  • @bvnbandela1163
    @bvnbandela1163 4 года назад

    Great video, so descriptive and step by step.

  • @skysurfer
    @skysurfer 4 года назад +21

    Great tutorial, the best I've seen! I was left shaking my head at Microsoft's decision to not include a simple dialog box for creating new solutions like Visual Studio does. I was not surprised to see that someone has already written an extension called "vscode-solution-explorer" that brings that feature back. Having the command line as an option is great and I'm looking forward to seeing what I can do with the dotnet command, but going through that to just create a new solution is a repetitive task that I don't need to be wasting time on. The other features in VS Code make up for that one annoyance though. Do you know by chance if Microsoft is moving away from the solution/project model or was this just for VS Code?

    • @IAmTimCorey
      @IAmTimCorey  4 года назад +15

      VSCode wasn't designed for C#. In fact, VSCode is primarily designed as a text editor. It was designed to be extensible so that you can add support for C#, Python, Java, or practically anything else you want. The focus is on speed and extensibility so you can use it the way you want. Visual Studio is an Integrated Development Environment (IDE). It was designed for C# (and other .NET languages). The two applications have different goals. Microsoft is not shifting its focus.

    • @skysurfer
      @skysurfer 4 года назад +1

      @@IAmTimCorey Thanks!

  • @handledandle332
    @handledandle332 4 года назад

    I got an error "The SDK 'Microsoft.NET.Sdk' specified could not be found" when doing the command "dotnet sln VSCodeIntroSln.sln add ./IntroUI/IntroUI.csproj"

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      This post should help: stackoverflow.com/q/46257393/733798

    • @handledandle332
      @handledandle332 4 года назад

      @@IAmTimCorey It worked thanks

  • @andersondamasceno1356
    @andersondamasceno1356 2 года назад

    Tim you are a hero! Thanks

  • @stevensrmiller
    @stevensrmiller 5 лет назад

    Nice intro. Everything worked exactly as you described, except that VS Code prompted me to install the .NET Core SDK (which it did, no problem). Glad you ended with a comparison of VS Code to Visual Studio for C#, and I was kind of wondering what the advantages to VS Code could possibly be with all that command-line stuff. Your breakdown was convincing. Would like to see this same kind of intro for Ruby and Python.

    • @IAmTimCorey
      @IAmTimCorey  5 лет назад

      Ruby and Python are outside of my skill set (I know enough to be dangerous, not enough to teach them) but I'm glad you enjoyed my video.

  • @KM-mh8vm
    @KM-mh8vm 4 года назад

    I got error that says "The type or namespace name 'IntroLibrary' could not be found (are you missing a using directive or an assembly reference?) [IntroUI]" When I tried to use PersonModel

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      Did you add the reference to the library? Did you add the using statement for the library?

    • @KM-mh8vm
      @KM-mh8vm 4 года назад

      IAmTimCorey Yes, I did add reference to the library and use statement for that library...

  • @hannaivanova3392
    @hannaivanova3392 2 года назад

    Hi. the system says, there is no such type or class "PersonModel"". Could you please advsie how to resolve this?

    • @IAmTimCorey
      @IAmTimCorey  2 года назад

      It sounds like you are missing a using statement at the top.

    • @hannaivanova3392
      @hannaivanova3392 2 года назад

      @@IAmTimCorey have statements in the top, but cannot resolve, trying to do it 2 days already. Nothing works

  • @lqvenglish5260
    @lqvenglish5260 4 года назад +2

    What should I do if the pop up " Require access to the " does not display?

  • @smitank2895
    @smitank2895 Год назад

    Super clear explanation

  • @Геннадій-ц8э
    @Геннадій-ц8э 4 года назад

    18:10 does not works for me (( It says that: 'dotnet' is not recognized as an internal or external command ... Is there any pill to fix it? Thanks

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      Check to be sure that you have the latest version of the .NET Core SDK installed on your machine.

  • @mrguss4692
    @mrguss4692 4 года назад

    when i try dotnet sln name.sln add **/* .csproj
    it gives me this
    Could not find project or directory `*/*`.
    Could not find project or directory `.csproj`.
    using windows poershell

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      It sounds like you might not be in the correct directory.

    • @daephx
      @daephx 4 года назад

      Running through the video myself atm
      Assuming you ARE in the right directory. Try using 'Get-ChildItem' or 'dir' wrapped in parenthesis
      dotnet sln solution.sln add (gci *\*.csproj)
      dotnet sln solution.sln add (dir *\*.csproj)
      There could be more ways of expressing it but this worked for me.

  • @malikbrahimi7504
    @malikbrahimi7504 Год назад

    How do you change the vscode launch settings to run multiple projects in the solution? I have an webapi project, a console worker, and a class lib used by both for common models, client abstractions, etc.

  • @josepheaston6611
    @josepheaston6611 3 года назад +1

    Hey up! I'm new to Visual Studio Code, as well as command line. When following you instructions, i keep getting the prompt that the usage of dotnet is reported , by my computer, as "not recognized as an internal or external command, operable program or batch file" .What's likely to be the problem? (I am using windows)

  • @RC-nn1ld
    @RC-nn1ld 3 года назад

    Fantastic video have learnt a lot

  • @thesuperiorman8342
    @thesuperiorman8342 5 лет назад +2

    I switched to VSCode a week ago because I wanted to make a website for my family's business and was worried about the licensing on Visual Studio IDE. It's not as powerful as the IDE but its lightweight and speed and the extensions available more than compensate. I am using it for C#.NET and ASP.NET core and I am enjoying the experience.
    Here are two extensions that I find helpful:
    - ASP.NET Helper: This enables intellisense for razor pages.
    - C# XML Documentation comments. This auto generates an XML type comment when you type "///".

    • @IAmTimCorey
      @IAmTimCorey  5 лет назад +1

      You shouldn't have a problem with VS licensing unless the family business is fairly large. You would have to be doing the work as a paid employee of the company and the company would need to make in excess of $1 million in revenue annually. Even then, there are cases where it is still ok to use Community Edition (which is free). I am glad you like VSCode though. Thanks for the plug-in suggestions.

  • @techsupportguyofficial
    @techsupportguyofficial 2 года назад

    I tried to make a number guess game but it woud only display "Guess a number 1-100" entering numbers into the debug console does nothing.

    • @IAmTimCorey
      @IAmTimCorey  2 года назад

      Sounds like you have some debugging work to do. Use breakpoints to track down the issue.

    • @techsupportguyofficial
      @techsupportguyofficial 2 года назад

      @@IAmTimCorey Actually, the program works fine if you run it with the terminal.

  • @blissfulsoul5783
    @blissfulsoul5783 4 года назад

    Hi
    i am using office pc
    in that installation of BASH not possible
    can u able to share command in CMD instead of bash

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      Which commands are you referring to (time code)? The commands are typically very close to the same.

    • @blissfulsoul5783
      @blissfulsoul5783 4 года назад

      @@IAmTimCorey Hi
      21:53 Adding project to solution : Bash prompt

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      You could run all of the same commands except the ones with wildcards (asterisks). In those cases, you will need to manually type out the path for each project. Since there are only two, this won't be a huge deal.

  • @sakhisenindlovu6730
    @sakhisenindlovu6730 3 года назад +1

    'dotnet' is not recognized as an internal or external command,
    operable program or batch file.

  • @scaredkid3408
    @scaredkid3408 4 года назад

    its show dotnet is not recognized as an internal or external command, operable program or batch file what to do.

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      It sounds like you don't have the .NET Core SDK installed on your computer. You can get it here: dotnet.microsoft.com/download/dotnet/5.0
      The latest version is .NET 5, which should work just fine for these examples.

    • @scaredkid3408
      @scaredkid3408 4 года назад

      @@IAmTimCoreynow I solve my problem anyway thanks

  • @selfiestick1589
    @selfiestick1589 3 года назад

    the information is really good, thanks for the video
    I do have to nitpick however, im watching at x2.0 speed and still feels slow
    but great video

    • @IAmTimCorey
      @IAmTimCorey  3 года назад +1

      I can only talk so fast when I'm also trying to think ahead and type. It is a limitation of my brain.

  • @fototrip9346
    @fototrip9346 Год назад

    I Hope the VSC have finally added some context menu for managing project but seems they leave this to VisualStudio :)
    Thank you for great tutorial. Cheers.

  • @Ballhogmusic
    @Ballhogmusic 4 года назад

    This is what I was looking for!

  • @andermetalbrasil
    @andermetalbrasil 4 года назад +1

    Thank you very much for the tutorial. It helped me a lot.

  • @stephen9646
    @stephen9646 4 года назад

    Hi, when I typed some code inside my C# method, the intellisense did not show any methods suggestions or when I click ctrl+, it doesn't show required namespaces, I tried restarting vscode on my windows laptop and I also tried restarting omnisharp but it still doesn't work. I was hoping if you can point me to the right direction on how to fix this issue?

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      VSCode can be tricky. Intellisense might be still trying to load or it might be having an issue.

  • @chaithradevadiga7387
    @chaithradevadiga7387 4 года назад

    Hi, I am beginner and completely new to C# moved from Cobol experience. When I run "dotnet run" - I get this error - error MSB4006: There is a circular dependency in the target dependency graph involving target "_GenerateRestoreProjectPathWalk". Please suggest
    Looks like missing some directive / reference as I see error line below System as well.

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      When you have two projects in a solution (let's say a web app and a class library), you cannot have each project reference the other. That is a circular dependency. The problem is that you need to compile one project before you can compile a project that depends on it. So, you actually need to remove a reference. The UI project should reference the class library. The class library should not reference the UI project.

    • @chaithradevadiga7387
      @chaithradevadiga7387 4 года назад

      @@IAmTimCorey Thanks a lot for your kind reply

  • @Ahmet-nd5ct
    @Ahmet-nd5ct 2 года назад

    hi. can we use elmah in vscode? i tried elmahcore but app.useElmah() wont work.

    • @IAmTimCorey
      @IAmTimCorey  2 года назад +1

      Yes, it has nothing to do with VSCode. VSCode is just the editor. It does not change how your code is run.

  • @Blue5180
    @Blue5180 4 года назад

    When I try to CTRL+ . to add the using statement for the IntroLib, it does not recognize it. Any thoughts?

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      VSCode isn't as powerful as Visual Studio. It may not be seeing that IntroLib exists or it may not have updated its cache of information yet.

    • @Blue5180
      @Blue5180 4 года назад

      IAmTimCorey it had not created the csproj file. It was referenced but not created. Thank you!

  • @ayyubayyubzada4090
    @ayyubayyubzada4090 5 лет назад +4

    Firstly thanks for amazing explanations, secondly it would be great if you make a video about Blazor localization.

    • @IAmTimCorey
      @IAmTimCorey  5 лет назад +5

      I will add it to the list. Thanks for the suggestion.

  • @justboris8740
    @justboris8740 4 года назад +1

    When i type in dotnet new console it dont work anyone can help please ? it says : 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 pat
    h is correct and try again.
    At line:1 char:1
    + dotnet new console
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (dotnet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException . PLEASE ANYONE CAN HELP ?

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      It sounds like you don't have the .NET Core SDK installed on your machine: dotnet.microsoft.com/download

  • @Omega451
    @Omega451 Год назад

    Hello, for some reason when I lauch Visual stuiod I with the "code ." command from within the "UI" directory the system isn't creating the Launch and Task Json files. Can you please tell me how to create these manually? FYI- I do get the ".vscode" folder Thanks

    • @IAmTimCorey
      @IAmTimCorey  Год назад

      I think you want to open it one level higher at the solution level.

    • @Omega451
      @Omega451 Год назад

      @@IAmTimCorey Perfect! thanks!

  • @eshansharma9458
    @eshansharma9458 3 года назад

    25:56
    I didn't got that message thing or the folder either

  • @jasperzanjani
    @jasperzanjani 4 года назад +19

    22:00 Tim Corey: "this is not the command prompt, this is bash, it's different"
    Also Tim Corey: runs dir in bash 🤦‍♂️

    • @IAmTimCorey
      @IAmTimCorey  4 года назад +4

      lol yeah, it may be bash but I’ve spent my whole life on the command prompt (started in DOS) so I forget and fall back to those commands a lot.

    • @David-uw4tq
      @David-uw4tq 3 года назад +2

      get-childitem

    • @andrewshearer4965
      @andrewshearer4965 3 года назад +1

      a video from 2019 and you can't use the GUI to create a solution file??

    • @andrewshearer4965
      @andrewshearer4965 3 года назад

      dir i mean dur

    • @toastpulver3422
      @toastpulver3422 3 года назад

      @@andrewshearer4965 cmd/bash is way lighter and quicker

  • @LasTCursE69
    @LasTCursE69 2 года назад

    Well great tutorial man, but my VSCode refuses to create the launch/tasks json files..
    No pop up comes along, no matter how much time I wait or from where I launch the program (solution or project level)? Any Ideas?

  • @davidencarnacaopereira3241
    @davidencarnacaopereira3241 3 года назад

    When I go on variables i cant see any of the variables, i see the dropdown menu but no variables, why is that

  • @willmatheson
    @willmatheson 3 года назад

    The Visual Studio IntelliCode extension for VS Code says it's for Python, TS/JS, and Java. C# users who need IntelliCode might have to go to full-fat Visual Studio (for Windows). Fortunately, the C# extension does claim to include IntelliSense (although that would lack the 'AI' of IntelliCode).

  • @prodbygunter
    @prodbygunter 3 года назад

    can I just make a folder on my desktop and put my code in there? just like Python. Im trying to make a game wondering if I have to add all these solutions and stuff to set it up every time. If you understand what I am saying.

    • @IAmTimCorey
      @IAmTimCorey  3 года назад

      The solution and project files are important for C#. C# isn't structured the same as Python.

  • @ender2999
    @ender2999 5 лет назад

    The docker extension is awesome

  • @TheMathias95
    @TheMathias95 2 года назад

    Why did you make both an IntroUI folder and an IntroLibrary folder. Wouldn't it be fine to have the whole project in a folder called "Intro" and then structure the classes inside of here? Such as a model folder, network folder etc. and have the Program.cs class in the root of the Intro folder?

  • @matthewhiebing3507
    @matthewhiebing3507 2 года назад

    When you click and drag one your windows it becomes semi-transparent. How did you do this?

    • @IAmTimCorey
      @IAmTimCorey  2 года назад

      That was a software I had installed to help me handle my windows on a large screen. I forget the name (it might be in the comments because I think someone else asked this), but it isn't something that is needed anymore with Windows 10 and beyond.

    • @matthewhiebing3507
      @matthewhiebing3507 2 года назад

      @@IAmTimCorey I found a setting where you can make the window completely transparent but I like when the windows only turn semi-transparent. If you remember the setting that would be awesome!

  • @David-uw4tq
    @David-uw4tq 3 года назад +1

    Could you explain how to add a reference to a local dll (for an API)?

    • @IAmTimCorey
      @IAmTimCorey  3 года назад +1

      I will add it to the list. Thanks for the suggestion.

  • @c17vega
    @c17vega Год назад

    Does anyone know how to debug NuGet packages? - I'm having trouble finding instructions on how to step into that code from my main project!

  • @phoxytwicks
    @phoxytwicks 4 года назад +1

    I watched this, as I'm new to programming(hobby hopefully), I lost around 15 minutes because I didnt realise I needed to create an reference each direction of the .csproj files so they know of eachothers namespaces? I know you made it easier by a bash cmd line but I didnt have that and thought it was optional. Anyway, good little video, and it taught me a bit :)

    • @IAmTimCorey
      @IAmTimCorey  4 года назад

      You shouldn't be creating a reference to the user interface from the class library.

  • @edwinaguilar1855
    @edwinaguilar1855 4 года назад

    Very helpful video, thanks a lot!

  • @hamidrezaashkiyan
    @hamidrezaashkiyan 5 лет назад +1

    THANKS A LOT I wanted this tutorial so much!

  • @zacharytaylor190
    @zacharytaylor190 2 года назад

    One issue. When I try to debug it, I get an error on "Launch: Program 'C:\[File Path]\CSharpProj1\bin\Debug
    et5.0\CSharpProj1.dll' does not exist" despite the fact that there is a directory called "bin\HPD\Debug
    et5.0" with the file "CSharpProj1.dll" inside of it. Any ideas? Maybe it has to do with HPD whatever that means. Still very new to VSCode, so thank you for your tutorial. Also, importatnt to note that I have very recently installed the .NET 6.0, after the project files had been loaded, so perhaps that could be an issue as well. Thank you!

  • @QuanMa
    @QuanMa 3 года назад

    I can't seem to debug when expecting a user input using Console.ReadLine

  • @guy1407
    @guy1407 3 года назад

    Time = 36:48
    Can you please explain how you got VSCode to add the using statement for you?
    I have all the extensions you installed (and more).
    Thanks a lot in advance.

  • @NiamorH
    @NiamorH 3 года назад

    How do you debug / step into third party lib like Dapper, Serilog, IdentityServer, Npgsql etc. ?

    • @IAmTimCorey
      @IAmTimCorey  3 года назад

      Normally we don't. We focus on the code we can change because that is most often where the issue lies. However, you can step into their code if you load their PDB files. I'm not sure of how to set that up in VSCode, though.

    • @NiamorH
      @NiamorH 3 года назад

      ​@@IAmTimCorey Ok thanks. I was afraid I would get this answer. I was hoping one symbols server existed that I was just unaware of, with all open source projects pdb available there, just like there is one for microsoft aspnetcore.
      Stepping into others code has been a necessity for me, documentation is sometimes lacking or minimal. You don't need to do that everyday of course, but I am sure you reached that point when you just can't find why the lib is behaving like it does, you tried to use a feature but it won't work in a particular case. Looking at the github repo is nice, but it is not always sufficient.

  • @tohfaWrappedUp
    @tohfaWrappedUp 4 года назад

    Thanks man, It was really helpful.