❔ Hi , I am trying to start code in vsc but there is an error
The error is when I press on "generate assets for build and debug"
68 Replies
this is the error
Well, do you have a project?
Or just a loose
*.cs
file?I was following a tutorial and step 1 . dotnet new console
then cntrl+shift+P , generate assets....
So you do have a
*.csproj
file, right?yes
If so, everything seems fine. Show a screenshot of the project panel though, just in case
Also, do you use the Omnisharp plugin, or the Dev Kit?
OmniSharp isn't available anymore
i have the same problem (we are friends) i got devkit
Ah, good to know
$vscode
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
Just in case, check if you followed those steps
okie
Or just use a proper IDE like VS2022 lol
I used c# mICROSOFTextension
Everything seems in order
There's no such thing as "C# Windows Extension"
There's (used to be) Omnisharp, and there's DevKit
One thing that might cause issues is the use of special characters in the project name and path?
I'd have thought it's likely to
Yeah, you really want your paths and names to be
[a-zA-Z0-9]
......what
i named my folder cssss
Alphanumeric charaters of the Latin alphabet
No special characters, no whitespace
oh ok
devkit will install all things that are necessary. You don't need to do anything pretty much once installed
including the base c# extension
i dont need .NET
?
What do you mean?
the consol thing
What consol thing?
they meant core I think
i guess so
we are new as u see
You need to follow the $vscode steps
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
Or you need to use an easier to use IDE
VS Code is really not great for beginners, as you can see
^
Visual Studio 2022 you just install, open, click "make new project", done
There's no plugin tomfuckery, no generating assets, no nothing
Just click-click-done
Unless you're on Linux or MacOS, there's no reason to use VS Code
And even then, you should probably get Rider instead anyway
i see
i think
basically we were following this tutorial https://youtu.be/N775KsWQVkw
Brackeys
YouTube
HOW TO PROGRAM - Getting Started!
Coding can seem scary at first - but it's actually not that hard! Let's learn how to program in C#.
► SIGN UP FOR JASON'S COURSES: https://game.courses/gamearch/
● Download VSCode: https://code.visualstudio.com/
● Download .NET: https://dotnet.microsoft.com/
👕Get the new Brackeys Hoodie: https://lineofcode.io/
·······························...
And he's using Visual Studio 2019
Not Visual Studio Code
Ah, no
At the beginning he shows VS, then he uses VSCode
lol
i almost got brain damage
yeah, you want devkit + unity extension
They just released the brand new Unity extensio couple of days ago
Unity - Visual Studio Marketplace
Extension for Visual Studio Code - Integrates Visual Studio Code with Unity
Wait, since when was Unity in the picture?
was assuming, I mean, it's Brackeys
i have it listen listen i want the so called compiler for vscode i think
No such thing
The compiler is part of the .NET SDK
VS Code has the DevKit which adds C# and .NET support
yes ITS NOT WORKING😭
i downloaded the .net sdk
Type
dotnet run
in the CLI
What's not working is the VS Code plugin
If you have .NET SDK installed, it will worki do have it
Yeah
So if you
dotnet new console
and then dotnet run
everything will work
Your .NET SDK is workingYour compiler is working
Your VS Code plugin is not for some reason
ok ok now i want it to do this
Which is why you should either use a hassle-free IDE, that is NOT VS Code
Or follow the $vscode steps precisely
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
And, just to be safe, you should not use special characters for file names and paths
ill see what i can do lol tysm
yeah thx
Personally, I'd just drop using VS Code and install Visual Studio 2022 Community
is there a tutorial that uses vs instead of vsc ?
C# is C#
.Ok
btw wanted to mention that we figured it out and i personally appreciate ur help
Nice, what was the issue?
my brain
jk idk what was wrong i just followed the steps and it worked
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.