C
C#3w ago

Missing launch.json file.

i've searched up on the internet on how to get it back or how to atleast make a new one , nothing has worked so far. and yes i have tried debugging.
No description
29 Replies
Jimmacle
Jimmacle3w ago
Medium
Understanding launchSettings.json File Configuration
This article assumes that you have already created an ASP.NET or Web API Core project. If you haven’t done it yet, I suggest you create one…
᲼
OP3w ago
halfway into this article and im ealready getting a headache. i was just following brackeys tutorial 😭
Jimmacle
Jimmacle3w ago
is there a reason you aren't using visual studio proper? it's generally a better experience and more beginner friendly
᲼
OP3w ago
i dont know what that is could you tell me how to use or install it?
Jimmacle
Jimmacle3w ago
Visual Studio
Visual Studio: IDE and Code Editor for Software Developers and Teams
Visual Studio dev tools & services make app development easy for any developer, on any platform & language. Develop with our code editor or IDE anywhere for free.
Jimmacle
Jimmacle3w ago
specifically the one on the left in that picture, not visual studio code
᲼
OP3w ago
Visual studio supports c# right?
Jimmacle
Jimmacle3w ago
i wouldn't be recommending it if it didn't
᲼
OP3w ago
not to be like those people that ask too many qestions but , what are some pros to using vs and vscode
Jimmacle
Jimmacle3w ago
VS is a full IDE with first class C# support built in, visual studio code is a text editor with extensions that can make it work like an IDE but it's going to be more difficult to use if you don't know what you're doing
᲼
OP3w ago
oh i see
Jimmacle
Jimmacle3w ago
mainly a lack of UI options specific to the language you're working in
᲼
OP3w ago
alright
Angius
Angius3w ago
You need to do X: * VS Code: edit the doex.json file and call dotnet do x command with --x parameter * VS: click the button that says "Do X"
Jimmacle
Jimmacle3w ago
also i'm not sure if VSC has previewers for desktop UI frameworks
᲼
OP3w ago
wait would visual studio even work on a low end computer?
Jimmacle
Jimmacle3w ago
depends how low end it is worst case you just uninstall it and go back to vs code
Angius
Angius3w ago
If VS won't work, chances are Rider might. It's also an IDE, and also free for non-commercial use It's true, though, that VS Code is the most lightweight of them all
᲼
OP3w ago
is doex.json the settings.json? because when i search it up all the results are settings.json
Angius
Angius3w ago
I was just throwing random names around to get the idea across
᲼
OP3w ago
oh okay so how do you actually do this
Jimmacle
Jimmacle3w ago
do what? that was just an example using gibberish things that are just buttons in VS are usually terminal commands in VS Code
Angius
Angius3w ago
Adding a new controller in VS: Right-click the project, add new, select "controller", enter the name, click OK VS Code: Install the Microsoft.dotnet-scaffold tool, call dotnet-scaffold command, pick category, press Enter, pick template, press Enter, pick project, press Enter, enter file name, press Enter Here, a concrete example, since dealing with the abstract seems to be an issue lol
᲼
OP3w ago
i am completly clueless on what to do
Angius
Angius3w ago
Regarding what? Your initial issue of "how to I get launch.json bac"? Jim linked you how to do it Whether you should use VS or VS Code? See if VS works to make sure
Jimmacle
Jimmacle3w ago
honestly if you're just getting started then delete the whole project and start over and follow the tutorial more closely
᲼
OP3w ago
ive made 16 files over and over ealready but i think i fixed it i copy and pasted the tasks.json and launch.json file code onto the new files and renamed the file name in the code
YourMajesty
YourMajesty3w ago
Press Shift + Ctrl + P and type in Generate Assets for Build and Debug And I'm pretty sure Brackeys tells about it, but you might have missed it
᲼
OP2w ago
This works , thanks

Did you find this page helpful?