C
C#7mo 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
ÎcestyleOP7mo 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
Kouhai7mo ago
How are you trying to run it? Did you create a new project in visual studio?
Îcestyle
ÎcestyleOP7mo ago
i created a new text file should i create a project?
The Fog from Human Resources
You need a project
Kouhai
Kouhai7mo ago
Okay, for C# you can't run files, you have to run projects
Îcestyle
ÎcestyleOP7mo ago
ohh alright
Kouhai
Kouhai7mo ago
Specifically you want a console project in this case
Îcestyle
ÎcestyleOP7mo ago
umm how to create a project tho, i already have a folder and i would like to create it in it
Kouhai
Kouhai7mo ago
Are you using visual studio?
Îcestyle
ÎcestyleOP7mo ago
yep, visual studio code
Kouhai
Kouhai7mo 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
ÎcestyleOP7mo ago
ye i do have it
Buddy
Buddy7mo ago
$vscode should guide you
MODiX
MODiX7mo 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
ÎcestyleOP7mo ago
Yep, that helped a lot, now it works thanks!
The Fog from Human Resources
Vs better!!! Vscode Bad. :SCcrying:
Îcestyle
ÎcestyleOP7mo ago
Can VS work with unity?
Îcestyle
ÎcestyleOP7mo ago
oh alright
The Fog from Human Resources
Even with godot and all the others :pwetty:
Îcestyle
ÎcestyleOP7mo ago
o nice ill download that better then
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server