C
C#3d ago
SpaceCat

.NET generate assets for build and debug not apperaring

Hello, I just started learning C# and have been following the brackeys tut (https://www.youtube.com/watch?v=N775KsWQVkw&list=PLPV2KyIb3jR4CtEelGPsmPzlvP7ISPYzR&index=4) One of the suggestions is to type in the title in the search bar and get the launch.json file so that i can switch th code from running on an internal console to an external terminal. It worked fine at the start, but does not seem to show up on any new projects i create even though i follow the same steps Am I missing something>
Brackeys
YouTube
HOW TO PROGRAM - Getting Started!
Coding can seem scary at first - but it's actually not that hard! Let's learn how to program in C#. Jason no longer offers the course mentioned in the video. ● Download VSCode: https://code.visualstudio.com/ ● Download .NET: https://dotnet.microsoft.com/ ❤️ Donate: https://www.paypal.com/donate/?hosted_button_id=VCMM2PLRRX8GU ···...
No description
23 Replies
Buddy
Buddy3d ago
If you are a beginner .. Please do not use visual studio code as it is a code editor that requires a lot of manual configuration. Please prefer Visual Studio Community 2022 or if you are on a non-Windows OS, Jetbrains Rider.
SpaceCat
SpaceCatOP3d ago
yea im considering swapping to VS 2022 cause ive been fighing the program instead of actually learning to code for the past few days do u have any resources on how VS file management works
Anton
Anton3d ago
you may need a config for each of your projects
SpaceCat
SpaceCatOP3d ago
I learned a bit of python a while ago and all of it was just .py files i edited onVSC
Anton
Anton3d ago
c# projects are IDE independent. They always use the csproj and sln system The launch.json is vs code specific. There's launchSettings.json, which is editor-agnostic but it's also per project vs adds its own caches and config, which is stored in the .vs directory but most of the stuff is stored in the project files I recommend Rider
SpaceCat
SpaceCatOP3d ago
ooh ive never heard of that one
reflectronic
reflectronic3d ago
the tutorial is outdated and you don’t need to configure anything anymore you just open the folder
manateebison
manateebison3d ago
But I still cant run while debugging
MODiX
MODiX3d ago
reflectronic
Quoted by
<@384454726512672768> from #chat (click here)
From reflectronic
React with ❌ to remove this embed.
manateebison
manateebison3d ago
It didn't work Just gave me an error
reflectronic
reflectronic3d ago
what error there's also the button on the top next to the tabs
manateebison
manateebison3d ago
Build failures
reflectronic
reflectronic3d ago
what are they
manateebison
manateebison3d ago
idk it just says build failures and then it says "would you like to continue and run last successful build" its mainly focusing on "Console.ReadKey();"
reflectronic
reflectronic3d ago
can you show your vs code window
manateebison
manateebison3d ago
gimme a moment it wasnt like this before now
reflectronic
reflectronic3d ago
well. i don't see how the two pictures are related to each other
manateebison
manateebison3d ago
they are not really there just 2 issues i have this is a brand new project file
reflectronic
reflectronic3d ago
for the first one, go to VS code preferences, search for "dotnet console," and change this option to integratedTerminal
No description
manateebison
manateebison3d ago
this was an attempt to run debug after i pressed "run and debug"
reflectronic
reflectronic3d ago
for the second one, it generally means there is a problem with your code that you need to fix you go into the "Problems" window and it tells you what the problems are
manateebison
manateebison3d ago
figured out the problem, aparrently the project running 5 seperate times on the callstack from me attempting to debug it anyways its fixed thank you @reflectronic :D i am legit a dumbass

Did you find this page helpful?