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

Did you find this page helpful?