#Hi guys new here

1 messages · Page 1 of 1 (latest)

pastel cipher
#

Barckey made a video about C# back in 2020 i tried the exact steps like running it with dotnet in Visual Studio code (the blue one) and somehow few steps arent exactly like in the video

#

I even tried other steps

#

but when i run the code (so the output can be run in console) it takes time

#

and opens the terminal

#

with debugging

#

Im very confused why are there 2 options to run C#. In blue one and purple one

merry raptor
pastel cipher
#

I tried using normal vscode

merry raptor
#

there are multiple types of c# projects

pastel cipher
#

Ohh the one you pick with mac os, windows

merry raptor
#

no lol

pastel cipher
#

Look i tried the steps of

merry raptor
#

try following his steps again

#

be more careful

pastel cipher
#

When he downloaded

#

Dotnet

#

It was different for him

#

I downloaded the dotnet 9.0 version

merry raptor
#

follow his steps exactly then lol

pastel cipher
#

Look ill send screenshots

pastel cipher
#

My problem is

#

When it runs

#

It takes time

#

Is that a normal thing though?

merry raptor
#

i mean

#

does it work

#

?

pastel cipher
#

Yes

#

It does shoe

#

Show

#

Hello world and stuff

#

I also changed the color of the eltters

#

Console.title worked aswell

#

@merry raptor

merry raptor
#

then just wait it out lol

#

if it works its probably not an issue

pastel cipher
#

Whats the difference between this:

using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}

And executing normal code, like Console.Writeline("Hello World");

#

@merry raptor

faint locust
#

Nothing

pastel cipher
#

not much of a difference?

faint locust
#

No, there is literally no difference. The shorter version compiles with a class called Program, and puts your code in Main, automatically

pastel cipher
#

please explain to me why is C# run in

#

purple visual studio code and blue one?

faint locust
#

Those are not the same applications

pastel cipher
#

yeah but why

#

in the purple one

faint locust
#

The "purple one" is Visual Studio

#

NOT Visual Studio Code

pastel cipher
#

oh ok

#

so

#

if i only use C# in the blue one

#

its pretty much fine

faint locust
#

The blue one is Visual Studio Code, and no it's generally advised not to use it for C#

pastel cipher
#

well Brackey

#

4 years ago

#

introduced it in the blue one

#

visual studio code

faint locust
#

Yes I know and many of us believe it was a mistake

pastel cipher
#

ok so which tutorial on yt is better to follow

faint locust
#

Any of them

#

But also Youtube is not the only source of information

pastel cipher
#

and how do i run the code in a console

#

just like brackey did it

faint locust
#

By hitting the run button at the top

#

What does this have to do with Unity anyway

pastel cipher
#

so i can see the output better?

pastel cipher
faint locust
#

It's a game engine...

#

Why did you ask this question in #1006674323458764851

#

If it has nothing to do with unity

pastel cipher
#

whats going on here?

faint locust
#

Well for starters, you're still using Visual Studio Code - you should be using Visual Studio

#

But the warning is telling you what's going on

faint locust
pastel cipher
#

ik

#

but how can i fix that

faint locust
#

You don't

#

You can't set the console Window Height in Linux or macOS - but your code is currently set to work everywhere

#

If you only plan to use Windows, then you can just ignore that particular warning

pastel cipher
#

so these are the ones i downloaded

faint locust
#

You should not need to download it separately