C
C#6mo ago
Ducki

✅ can anyone help me out setting up c# in vsc? im struggling to get it to debug

No description
18 Replies
Jimmacle
Jimmacle6mo ago
did you create a C# project? you can't run individual files
Ducki
DuckiOP6mo ago
ah, that makes a big more sense
Jimmacle
Jimmacle6mo ago
you need a .csproj dotnet new console will set up a console project for you for example
Ducki
DuckiOP6mo ago
alright, give me a second ~ sorry for the silly question, moving from basic python to c# assuming id have to make it a folder? wait i cant add an extension name to a folder 💀
Jimmacle
Jimmacle6mo ago
yeah, if you make a folder and run that command in it it'll create a project with the same name as the folder
Ducki
DuckiOP6mo ago
ah
Jimmacle
Jimmacle6mo ago
the csproj stores settings like what version of .NET to use, what libraries are installed, and a pile of other things
Ducki
DuckiOP6mo ago
assuming i need to install .net sdk?
No description
Jimmacle
Jimmacle6mo ago
yes, if you haven't already
Jimmacle
Jimmacle6mo ago
Microsoft
Download .NET 8.0 (Linux, macOS, and Windows)
.NET 8.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Ducki
DuckiOP6mo ago
right so ive ran the command, where can i find the .csproj?
Jimmacle
Jimmacle6mo ago
it will have generated files in the directory you ran the command in if you open the folder in vscode it should pick everything up
Ducki
DuckiOP6mo ago
ah yes perfect
Ducki
DuckiOP6mo ago
whats the issue now?
No description
Jimmacle
Jimmacle6mo ago
dunno, i'd think that's all it needs
Ducki
DuckiOP6mo ago
ive got it working now, thank you for you help
Jimmacle
Jimmacle6mo ago
:pepeok: $close
MODiX
MODiX6mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server