18 Replies
did you create a C# project?
you can't run individual files
ah, that makes a big more sense
you need a
.csproj
dotnet new console
will set up a console project for you for examplealright, 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 💀
yeah, if you make a folder and run that command in it it'll create a project with the same name as the folder
ah
the csproj stores settings like what version of .NET to use, what libraries are installed, and a pile of other things
assuming i need to install .net sdk?
yes, if you haven't already
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.
right so ive ran the command, where can i find the .csproj?
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
ah yes perfect
whats the issue now?
dunno, i'd think that's all it needs
ive got it working now, thank you for you help
:pepeok:
$close
If you have no further questions, please use /close to mark the forum thread as answered