C
C#6mo ago
Îcestyle

✅ Can't start a C# code

I'm trying to make my first code in visual studio code using C# but every time im trying to i get errors like
Request textDocument/inlayHint failed.
Request textDocument/inlayHint failed.
with source from C#. Could anyone help me?
24 Replies
The Fog from Human Resources
Send code :SCshocked:
Îcestyle
ÎcestyleOP6mo ago
using system;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}

}
}
using system;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}

}
}
idk now i tried to run it and it says create a solution folder im sure im doing something dumb but i cant find in internet how to fix it
The Fog from Human Resources
Ah You need to run the program from the same folder your csproj is in
Kouhai
Kouhai6mo ago
How are you trying to run it? Did you create a new project in visual studio?
Îcestyle
ÎcestyleOP6mo ago
i created a new text file should i create a project?
The Fog from Human Resources
You need a project
Kouhai
Kouhai6mo ago
Okay, for C# you can't run files, you have to run projects
Îcestyle
ÎcestyleOP6mo ago
ohh alright
Kouhai
Kouhai6mo ago
Specifically you want a console project in this case
Îcestyle
ÎcestyleOP6mo ago
umm how to create a project tho, i already have a folder and i would like to create it in it
Kouhai
Kouhai6mo ago
Are you using visual studio?
Îcestyle
ÎcestyleOP6mo ago
yep, visual studio code
Kouhai
Kouhai6mo ago
Hmmm, if you're using visual studio code it'll be a bit different from visual studio Do you have the devkit extension installed?
Îcestyle
ÎcestyleOP6mo ago
ye i do have it
Buddy
Buddy6mo ago
$vscode should guide you
MODiX
MODiX6mo ago
Follow 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
Îcestyle
ÎcestyleOP6mo ago
Yep, that helped a lot, now it works thanks!
The Fog from Human Resources
Vs better!!! Vscode Bad. :SCcrying:
Îcestyle
ÎcestyleOP6mo ago
Can VS work with unity?
Îcestyle
ÎcestyleOP6mo ago
oh alright
The Fog from Human Resources
Even with godot and all the others :pwetty:
Îcestyle
ÎcestyleOP6mo ago
o nice ill download that better then
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server