C
Join ServerC#
help
❔ Error help
GGalelao2/17/2023
I keep trying to start debugging but get I keep getting the same message.

DDeno2/17/2023
In the .vscode folder, please show the tasks.json file
DDeno2/17/2023
zou can always use the VS Code terminal and
dotnet
to build and run your application manuallyGGalelao2/17/2023

DDeno2/17/2023
yes, and show the tasks.json file
DDeno2/17/2023
open it in vscode
DDeno2/17/2023

GGalelao2/17/2023
Here's one
GGalelao2/17/2023

GGalelao2/17/2023

DDeno2/17/2023
the file seems to be fine - as you can see the build task is defined. If you press Configure task in the error dialog that shows up, what will happen?
DDeno2/17/2023
I suggest installing this extension, helps with build the project and running

GGalelao2/17/2023
I get this

DDeno2/17/2023

DDeno2/17/2023

GGalelao2/17/2023
Where are you finding this?
DDeno2/17/2023
Vs code extensions
DDeno2/17/2023
The puzzle symbol
AAngius2/17/2023
$vscode
MMODiX2/17/2023
1) Install the C# extension
2)
2.a) DO NOT USE OPEN FILE
2.b) Always use
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
3.b) Command Palette (
4) you should see a flame on the
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
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
GGalelao2/17/2023
Sorry, I mean your screenshot
AAngius2/17/2023
(or just use VS proper)
DDeno2/17/2023
You get that by installing the extension I've mentioned
DDeno2/17/2023
Might I ask what is the reason for not using Visual studio but opting for vs code?
GGalelao2/17/2023
I am just trying to learn using a tutorial
GGalelao2/17/2023
I get this now that it is installed
GGalelao2/17/2023

DDeno2/17/2023
Very good, now you open the solution
DDeno2/17/2023
.SLN file
GGalelao2/17/2023
Oh, I get this
GGalelao2/17/2023

DDeno2/17/2023
Also please read the steps provided by zzzzzzz
GGalelao2/17/2023
And nothing is in them
GGalelao2/17/2023
Yes I am trying, I don't really get them but I am trying
DDeno2/17/2023
And if you go up one directory?
DDeno2/17/2023
I strongly suggest starting out with visual studio 2022 instead
GGalelao2/17/2023
Oh ok
GGalelao2/17/2023
I'll go install that
GGalelao2/17/2023
I was just trying to follow a tutorial on Youtube
AAccord2/18/2023
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.