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.
29 Replies
like this? https://lock29down.medium.com/understanding-launchsettings-json-file-configuration-12f4e5a1347a
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…
halfway into this article and im ealready getting a headache. i was just following brackeys tutorial 😭
is there a reason you aren't using visual studio proper?
it's generally a better experience and more beginner friendly
i dont know what that is
could you tell me how to use or install it?
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.
specifically the one on the left in that picture, not visual studio code
Visual studio supports c# right?
i wouldn't be recommending it if it didn't
not to be like those people that ask too many qestions but , what are some pros to using vs and vscode
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
oh i see
mainly a lack of UI options specific to the language you're working in
alright
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"also i'm not sure if VSC has previewers for desktop UI frameworks
wait
would visual studio even work on a low end computer?
depends how low end it is
worst case you just uninstall it and go back to vs code
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
is doex.json the settings.json?
because when i search it up all the results are settings.json
I was just throwing random names around to get the idea across
oh okay
so how do you actually do this
do what? that was just an example using gibberish
things that are just buttons in VS are usually terminal commands in VS Code
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 loli am completly clueless on what to do
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
honestly if you're just getting started then delete the whole project and start over and follow the tutorial more closely
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
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 itThis works , thanks