C
C#2w ago
Ducki

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

No description
18 Replies
Jimmacle
Jimmacle2w ago
did you create a C# project? you can't run individual files
Ducki
Ducki2w ago
ah, that makes a big more sense
Jimmacle
Jimmacle2w ago
you need a .csproj dotnet new console will set up a console project for you for example
Ducki
Ducki2w 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
Jimmacle2w 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
Ducki2w ago
ah
Jimmacle
Jimmacle2w ago
the csproj stores settings like what version of .NET to use, what libraries are installed, and a pile of other things
Ducki
Ducki2w ago
assuming i need to install .net sdk?
No description
Jimmacle
Jimmacle2w ago
yes, if you haven't already
Jimmacle
Jimmacle2w 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
Ducki2w ago
right so ive ran the command, where can i find the .csproj?
Jimmacle
Jimmacle2w 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
Ducki2w ago
ah yes perfect
Ducki
Ducki2w ago
whats the issue now?
No description
Jimmacle
Jimmacle2w ago
dunno, i'd think that's all it needs
Ducki
Ducki2w ago
ive got it working now, thank you for you help
Jimmacle
Jimmacle2w ago
:pepeok: $close
MODiX
MODiX2w 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
More Posts