C
C#12mo ago
HoodBoi

❔ 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
HoodBoi
HoodBoi12mo ago
this is the error
HoodBoi
HoodBoi12mo ago
Angius
Angius12mo ago
Well, do you have a project? Or just a loose *.cs file?
HoodBoi
HoodBoi12mo ago
I was following a tutorial and step 1 . dotnet new console then cntrl+shift+P , generate assets....
Angius
Angius12mo ago
So you do have a *.csproj file, right?
HoodBoi
HoodBoi12mo ago
yes
Angius
Angius12mo ago
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?
Cattywampus
Cattywampus12mo ago
OmniSharp isn't available anymore
-_-SAGE-_-
-_-SAGE-_-12mo ago
i have the same problem (we are friends) i got devkit
Angius
Angius12mo ago
Ah, good to know $vscode
MODiX
MODiX12mo 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
Angius
Angius12mo ago
Just in case, check if you followed those steps
-_-SAGE-_-
-_-SAGE-_-12mo ago
okie
Angius
Angius12mo ago
Or just use a proper IDE like VS2022 lol
HoodBoi
HoodBoi12mo ago
HoodBoi
HoodBoi12mo ago
I used c# mICROSOFTextension
Angius
Angius12mo ago
Everything seems in order There's no such thing as "C# Windows Extension" There's (used to be) Omnisharp, and there's DevKit
HoodBoi
HoodBoi12mo ago
Angius
Angius12mo ago
One thing that might cause issues is the use of special characters in the project name and path?
SinFluxx
SinFluxx12mo ago
I'd have thought it's likely to
Angius
Angius12mo ago
Yeah, you really want your paths and names to be [a-zA-Z0-9]
-_-SAGE-_-
-_-SAGE-_-12mo ago
......what i named my folder cssss
Angius
Angius12mo ago
Alphanumeric charaters of the Latin alphabet No special characters, no whitespace
-_-SAGE-_-
-_-SAGE-_-12mo ago
oh ok
Cattywampus
Cattywampus12mo ago
devkit will install all things that are necessary. You don't need to do anything pretty much once installed including the base c# extension
-_-SAGE-_-
-_-SAGE-_-12mo ago
i dont need .NET ?
Angius
Angius12mo ago
What do you mean?
-_-SAGE-_-
-_-SAGE-_-12mo ago
the consol thing
Angius
Angius12mo ago
What consol thing?
Cattywampus
Cattywampus12mo ago
they meant core I think
-_-SAGE-_-
-_-SAGE-_-12mo ago
i guess so we are new as u see
Angius
Angius12mo ago
You need to follow the $vscode steps
MODiX
MODiX12mo 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
Angius
Angius12mo ago
Or you need to use an easier to use IDE VS Code is really not great for beginners, as you can see
Cattywampus
Cattywampus12mo ago
^
Angius
Angius12mo ago
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
-_-SAGE-_-
-_-SAGE-_-12mo ago
i see i think
-_-SAGE-_-
-_-SAGE-_-12mo ago
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/ ·······························...
Angius
Angius12mo ago
And he's using Visual Studio 2019 Not Visual Studio Code Ah, no At the beginning he shows VS, then he uses VSCode
-_-SAGE-_-
-_-SAGE-_-12mo ago
lol i almost got brain damage
Cattywampus
Cattywampus12mo ago
yeah, you want devkit + unity extension They just released the brand new Unity extensio couple of days ago
Cattywampus
Cattywampus12mo ago
Angius
Angius12mo ago
Wait, since when was Unity in the picture?
Cattywampus
Cattywampus12mo ago
was assuming, I mean, it's Brackeys
-_-SAGE-_-
-_-SAGE-_-12mo ago
i have it phrog listen listen i want the so called compiler for vscode i think
Angius
Angius12mo ago
No such thing The compiler is part of the .NET SDK VS Code has the DevKit which adds C# and .NET support
-_-SAGE-_-
-_-SAGE-_-12mo ago
yes ITS NOT WORKING😭 i downloaded the .net sdk
Angius
Angius12mo ago
Type dotnet run in the CLI What's not working is the VS Code plugin If you have .NET SDK installed, it will work
-_-SAGE-_-
-_-SAGE-_-12mo ago
i do have it
-_-SAGE-_-
-_-SAGE-_-12mo ago
Angius
Angius12mo ago
Yeah So if you dotnet new console and then dotnet run everything will work Your .NET SDK is working
-_-SAGE-_-
-_-SAGE-_-12mo ago
Angius
Angius12mo ago
Your compiler is working Your VS Code plugin is not for some reason
-_-SAGE-_-
-_-SAGE-_-12mo ago
ok ok now i want it to do this
Angius
Angius12mo ago
Which is why you should either use a hassle-free IDE, that is NOT VS Code Or follow the $vscode steps precisely
MODiX
MODiX12mo 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
Angius
Angius12mo ago
And, just to be safe, you should not use special characters for file names and paths
-_-SAGE-_-
-_-SAGE-_-12mo ago
ill see what i can do lol tysm
HoodBoi
HoodBoi12mo ago
yeah thx
Angius
Angius12mo ago
Personally, I'd just drop using VS Code and install Visual Studio 2022 Community
HoodBoi
HoodBoi12mo ago
is there a tutorial that uses vs instead of vsc ?
Angius
Angius12mo ago
C# is C#
HoodBoi
HoodBoi12mo ago
.Ok
-_-SAGE-_-
-_-SAGE-_-12mo ago
btw wanted to mention that we figured it out and i personally appreciate ur help
Angius
Angius12mo ago
Nice, what was the issue?
-_-SAGE-_-
-_-SAGE-_-12mo ago
my brain jk idk what was wrong i just followed the steps and it worked
Accord
Accord12mo ago
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.