C
C#4w ago
Garfield

✅ 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
Somgör from Human Resources
Send code :SCshocked:
Garfield
Garfield4w 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
Somgör from Human Resources
Ah You need to run the program from the same folder your csproj is in
Kouhai
Kouhai4w ago
How are you trying to run it? Did you create a new project in visual studio?
Garfield
Garfield4w ago
i created a new text file should i create a project?
Somgör from Human Resources
You need a project
Kouhai
Kouhai4w ago
Okay, for C# you can't run files, you have to run projects
Garfield
Garfield4w ago
ohh alright
Kouhai
Kouhai4w ago
Specifically you want a console project in this case
Garfield
Garfield4w ago
umm how to create a project tho, i already have a folder and i would like to create it in it
Kouhai
Kouhai4w ago
Are you using visual studio?
Garfield
Garfield4w ago
yep, visual studio code
Kouhai
Kouhai4w 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?
Garfield
Garfield4w ago
ye i do have it
Buddy
Buddy4w ago
$vscode should guide you
MODiX
MODiX4w 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
Garfield
Garfield4w ago
Yep, that helped a lot, now it works thanks!
Somgör from Human Resources
Vs better!!! Vscode Bad. :SCcrying:
Garfield
Garfield4w ago
Can VS work with unity?
Garfield
Garfield4w ago
oh alright
Somgör from Human Resources
Even with godot and all the others :pwetty:
Garfield
Garfield4w ago
o nice ill download that better then
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server
More Posts
✅ How to make a "loading" progress barHello, how can I make a "loading" progress bar ? (the white bar with a little green blur passing)Minigame UI Canvas not closing after adding delay to the end of the minigameMy minigame worked as intended (the UI canvas closed after the game was completed), but after addingAny way to reactivate a hanging foreign task (provided by an API/SDK)?I am a bit inexperienced with handling tasks and I cannot cancel or kill this task and it just hangsDataGridViewCell won't display line breaks properly when editingI'm trying to put multiple lines in this DataGridViewCell, but when I edit the value, the line breakdotnet publish fails due to a build error that doesn't happen when I run just dotnet buildHi there, I'm having a weird thing going on here. I use Jetbrains Rider, and have a project that usado.nethow the methods ado.net in the console work, that is, how the whole process behind them is carried odraw board caroHi! I want when the user drags up, down, left or right, it will draw more! I am new to C# (MAUI). BeDevexpress loadOptions parse filter array, how to handle in serversideAnyone know how to parse the array or restructure to make it easier the syntax var filter = [ ✅ I'm having issues with "MostrarEstatisticasPorLocal/Sensor/Tipo" in Menu.csit was suposed to give me the information that is on the "Leitura" list, but for some reason, it jus"Duplicate property" Entity Framework 8 ErrorI've got this error popping up on OnModelCreating method: ```System.InvalidOperationException: 'The