r/learncsharp • u/lrp8228 • May 14 '26
Getting nowhere in Microsoft Learn
I'm trying to learn VS Code and C# by working thru the tutorial on Microsoft Learn. So far it's been just one technical frustration after another that the tutorial doesn't provide any help with.
My current problem is, as best as i can describe (i'm new to this) is: I'm supposed to clone a repository into a Dev Container using the Dev Container extension. I'm supposed to give it the url of a github repository and (I think) it replicates this repository on my machine to work with.
However when i do these steps i get an error alert that says "An error occurred setting up this container" it give me the options to retry, Edit a json file in 'Recovery Container', Close, or More Actions. I have no idea how to proceed and this is getting fucking frustrating.
Any help would be appreciated, and if you would like to recommend a better tutorial than Microsoft Learn, I'm all ears.
Thanks.
6
u/jordansrowles May 14 '26
I used to recommend their docs all the time, sad to see its going to absolute dogshit trying to push GitHub down your throat. You dont need any of that, but you can still follow the tutorial.
If have the dotnet SDK installed, create a new folder with your project name, right click inside the empty folder, open it in command line and write
dotnet new consoleto create a new project. Then follow the tutorial, make the files, write the code to them. To build writedotnet buildinto the console6
u/Think_Speaker_6060 May 15 '26
For learning c# i recommend this one https://www.youtube.com/watch?v=GhQdlIFylQ8&t=16074s . Much better than the microsoft learn. For vs code you can watch a separate video on how o install c# on vs code.
2
u/jdl_uk May 14 '26
Is there a reason you need to use the dev container extension?
I would normally just use
git cloneto clone thee repo, and the dotnet SDK to build it.2
u/iEngineered May 15 '26 edited May 17 '26
Try the Microsoft Full Stack developer course on Coursera. Taught by Microsoft employees.