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