✅ Visual Studio Code C#
Hellooo, can anyone here help me to use Visual Studio Code C#? I am confused
18 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
you haven't described the problem you're having
[Running] scriptcs "d:\C# Newbie\HelloWorld.cs"
'scriptcs' is not recognized as an internal or external command,
operable program or batch file.
My problem is this, i cant run simple code in Visual Studio code
i don't know what scriptcs is but that's not normally how you build C# projects
you need the .NET SDK installed and the C# Dev Kit extension in VS Code
then create a project with
dotnet new console
in the terminal
$vscodeFollow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Get started with C# and .NET in Visual Studio Code
Getting Started with C# and .NET Development in Visual Studio Code
I already created a new workspace for C# and new file with .cs extension, no idea how to do this
that's wrong
C# projects are not just .cs files
Really? but i just started to learn C#, so i dont know other than .cs
have you read the link i sent yet?
Starting to read now
Okay i've created a new workspace called C#
Tis is the current looking of visual studio, how can i continue from here?
I cant seem to understand the web from that link so forgive me
which part of the page has you confused?
an editor with nothing open doesn't tell me much
am currently in school, so sorry if i dont respond to you rn, my teacher is very busy
C# is project based, not file based.
You need to create a project with
dotnet new console
Also, avoid having spaces and special characters in your pathIf you're on a Windows environment, installing Visual Studio Community Edition would be easier rather than using VS Code.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View