C
C#2y ago
kuulie

❔ Ctrl + F5 not working

I created a project in VSC using this command: "dotnet new web -o TodoApi" but when I press Ctrl + F5 nothing happens. I'm trying to run the project
9 Replies
Angius
Angius2y ago
Do you have VS Code set up for use with C#? The plugin installed and all?
kuulie
kuulieOP2y ago
i have the C# extension installed if thats what u mean
Angius
Angius2y ago
Yeah $vscode
MODiX
MODiX2y ago
1) Install the C# extension 2) 2.a) DO NOT USE OPEN FILE 2.b) Always use Open Folder (from the File menu), and open the folder containing your sln file (or the folder containing the csproj if you have only one csproj) 3) To make the extension start and detect C#, either: 3.a) wait for the prompt that will appear on the bottom right of your screen that ask you if you want it to create some files, and say Yes 3.b) Command Palette (F1 or Ctrl+Shift+P) and type > .Net : Generate Assets for build and run 4) you should see a flame on the Status bar with the Omnisharp logo (see second attached screenshot) 5) it should load to finally say OmniSharp server is running (if not ask for help) https://media.discordapp.net/attachments/569261465463160900/1006652191689429022/unknown.png https://cdn.discordapp.com/attachments/569261465463160900/951015732769079336/unknown.png
Angius
Angius2y ago
Make sure you followed the other steps as well VSCode needs some elbow grease to get it working somewhat-properly It's probably never going to be as good as other IDEs, though
kuulie
kuulieOP2y ago
should i be using another ide?
Angius
Angius2y ago
Visual Studio Or Rider
kuulie
kuulieOP2y ago
ok ill try VS It's working on Visual Studio! thanks
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server