C
C#ā€¢14mo ago
tedeni

ā” Absolute beginner, need help getting to the console

I'm following the installation guide at the start of this video: https://www.youtube.com/watch?v=GhQdlIFylQ8 However my experience has quickly differed from what he is showing on-screen. This is what I can see right now.
freeCodeCamp.org
YouTube
C# Tutorial - Full Course for Beginners
This course will give you a full introduction into all of the core concepts in C# (aka C Sharp). Follow along with the course and you'll be a C# programmer in no time! ā­ļø Contents ā­ļø āŒØļø (0:00:00) Introduction āŒØļø (0:01:18) Installation & Setup āŒØļø (0:05:03) Drawing a Shape āŒØļø (0:17:23) Variables āŒØļø (0:30:06) Data Types āŒØļø (0:37:17) Working With S...
No description
87 Replies
Pobiega
Pobiegaā€¢14mo ago
Looks like you might have our favourite bug. Can you open up s terminal and type dotnet --info and show the results?
Angius
Angiusā€¢14mo ago
Oh, another case of project missing from the solution, huh?
Pobiega
Pobiegaā€¢14mo ago
if its what I think it is, its cause the x86 runtime is "blocking" the x64 sdk from creating a project this is how that looks like when project is created via VS 2022 when you have that "bug"
DĪ£X
DĪ£Xā€¢14mo ago
this video is 5 years old. i guess there is not much out there, but maybe you can finde something more recent. there has been happening alot in the c# language and visual studio sorry, i have not other hint on the actual problem šŸ˜„
Pobiega
Pobiegaā€¢14mo ago
dw, I'm 99% sure I know what it is and can fix it šŸ™‚ just need @tedeni to wake up
tedeni
tedeniOPā€¢14mo ago
how do I open 's terminal' ?
Pobiega
Pobiegaā€¢14mo ago
press windows key, type "terminal" anything show up?
Pobiega
Pobiegaā€¢14mo ago
No description
tedeni
tedeniOPā€¢14mo ago
well that's the commant prompt, not terminal
Pobiega
Pobiegaā€¢14mo ago
call it what you want
tedeni
tedeniOPā€¢14mo ago
I'm on Windows 10
Pobiega
Pobiegaā€¢14mo ago
command prompt works fine
tedeni
tedeniOPā€¢14mo ago
got it open šŸ‘
Pobiega
Pobiegaā€¢14mo ago
type dotnet --info and show the results
tedeni
tedeniOPā€¢14mo ago
Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
Pobiega
Pobiegaā€¢14mo ago
.. thats not what I expected, but very easily fixed you don't have an SDK installed at all
Pobiega
Pobiegaā€¢14mo ago
go here, click that big button, install it oh and make sure you close VS before you install
DĪ£X
DĪ£Xā€¢14mo ago
you need a separate sdk after installing vs? it should be included with the installer
Pobiega
Pobiegaā€¢14mo ago
it should have indeed but it wasnt somehow
DĪ£X
DĪ£Xā€¢14mo ago
bummer
Pobiega
Pobiegaā€¢14mo ago
that info dump up there doesnt lie, it sees 2 runtimes, both x64, but no SDKs
tedeni
tedeniOPā€¢14mo ago
goodness, you'd think it'd be a 1-file installer for everything
Pobiega
Pobiegaā€¢14mo ago
actually 3, even the ol' 3.0 is in there There is. Im guessing it either borked up, or you didnt select the correct workloads when installing VS
DĪ£X
DĪ£Xā€¢14mo ago
i wonder if that info shows something different when running from the dev-console in vs
Pobiega
Pobiegaā€¢14mo ago
it doesnt
UltraWelfare
UltraWelfareā€¢14mo ago
You installed the runtime just to run applications but not the SDK that allows you to develop I think if you download the SDK it also includes the runtime but not the other way around
Pobiega
Pobiegaā€¢14mo ago
correct.
UltraWelfare
UltraWelfareā€¢14mo ago
It's borked up, I recently installed fresh VS on my PC and I had to manually install dotnet too I assume its a bug
tedeni
tedeniOPā€¢14mo ago
ayy
No description
UltraWelfare
UltraWelfareā€¢14mo ago
Sorry I replied to the wrong person, meant to reply to @tedeni Welcome :)!
Pobiega
Pobiegaā€¢14mo ago
a pattern we've noticied recently is that a lot of people tend to have the X86 runtime (pre-installed?), and when VS is later installed it installs the x64 SDK
UltraWelfare
UltraWelfareā€¢14mo ago
Also fun-fact if you install "JetBrains Rider" (Assumming you bought it) it autoinstalls the dotnet sdk
Pobiega
Pobiegaā€¢14mo ago
but the x64 has a differnt path, and is also called dotnet.exe, so its blocked by PATH ordering
tedeni
tedeniOPā€¢14mo ago
aight we're back here, what next?
No description
Pobiega
Pobiegaā€¢14mo ago
did you restart Visual studio?
tedeni
tedeniOPā€¢14mo ago
yup
Pobiega
Pobiegaā€¢14mo ago
if so, go ahead and make a new project
tedeni
tedeniOPā€¢14mo ago
blank solution fine?
Pobiega
Pobiegaā€¢14mo ago
no probably a console app
UltraWelfare
UltraWelfareā€¢14mo ago
Create a new one just to be sure the IDE sees the dotnet
tedeni
tedeniOPā€¢14mo ago
No description
UltraWelfare
UltraWelfareā€¢14mo ago
I guess VS doesn't see dotnet šŸ˜› Wait did you update your VS? It has to be above 17.5
tedeni
tedeniOPā€¢14mo ago
Reboot windows? HmmRTX
Pobiega
Pobiegaā€¢14mo ago
nah its probably missing the workload shut VS down start "visual studio installer" windows key -> "installer"
Pobiega
Pobiegaā€¢14mo ago
No description
tedeni
tedeniOPā€¢14mo ago
it.s 17.4 something atm
Pobiega
Pobiegaā€¢14mo ago
No description
UltraWelfare
UltraWelfareā€¢14mo ago
yeah... it won't ever see dotnet 7 >= 17.5 required
Pobiega
Pobiegaā€¢14mo ago
lets make sure the right workload is in thou you should update too, but lets just click modify first
Pobiega
Pobiegaā€¢14mo ago
No description
Pobiega
Pobiegaā€¢14mo ago
you need this one if its checked, go back out and update your VS. if its not, install it, then update your VS
tedeni
tedeniOPā€¢14mo ago
found it - install while downloading, or - modify
Pobiega
Pobiegaā€¢14mo ago
?
tedeni
tedeniOPā€¢14mo ago
No description
UltraWelfare
UltraWelfareā€¢14mo ago
just click modify
Pobiega
Pobiegaā€¢14mo ago
ah, yeh the other one isnt a button, its a dropdown šŸ™‚
UltraWelfare
UltraWelfareā€¢14mo ago
leave it do itself on the modification, but also don't forget to update otherwise dotnet 7 aint gonna work šŸ˜„
Pobiega
Pobiegaā€¢14mo ago
^
UltraWelfare
UltraWelfareā€¢14mo ago
also you can also make sure dotnet 7 is correctly installed
UltraWelfare
UltraWelfareā€¢14mo ago
No description
UltraWelfare
UltraWelfareā€¢14mo ago
by checking the other tab
UltraWelfare
UltraWelfareā€¢14mo ago
No description
Pobiega
Pobiegaā€¢14mo ago
uhm actually you already have 17.7.4?
Pobiega
Pobiegaā€¢14mo ago
No description
UltraWelfare
UltraWelfareā€¢14mo ago
or is this different? šŸ¤” oh yeah seems like its updated probably missing the workload
Pobiega
Pobiegaā€¢14mo ago
yup
UltraWelfare
UltraWelfareā€¢14mo ago
that's why no templates don't forget to restart your house after its done
Pobiega
Pobiegaā€¢14mo ago
VS is black magic, afaik its has its own project templates, not related to dotnet new at all
UltraWelfare
UltraWelfareā€¢14mo ago
well dotnet didn't exist before, so vs had its own stuff and i guess for compatibility reasons they dont wanna remove it due to legacy stuff not being able to be ported to dotnet (i assume?) people still be using net framework
Pobiega
Pobiegaā€¢14mo ago
yup. I'd be for removal of the ability to create new .NET framework projects thou šŸ˜› or at least require a special flag or something
UltraWelfare
UltraWelfareā€¢14mo ago
i'm in my way of migrating a huge winforms netframework app to net7 blazor hybrid with winforms went more smoothly than expected
Pobiega
Pobiegaā€¢14mo ago
sooo many beginners do it by mistake, not realizing there are two "console app" templates etc
tedeni
tedeniOPā€¢14mo ago
17.7.4 installed
UltraWelfare
UltraWelfareā€¢14mo ago
reboot your house visual studio, and it should be fine you should see the templates
tedeni
tedeniOPā€¢14mo ago
No description
UltraWelfare
UltraWelfareā€¢14mo ago
yay šŸ˜„
tedeni
tedeniOPā€¢14mo ago
top console app?
Pobiega
Pobiegaā€¢14mo ago
yep
UltraWelfare
UltraWelfareā€¢14mo ago
yeah the other one is F# šŸ˜› and the other is VB
Pobiega
Pobiegaā€¢14mo ago
you can set "language" to C# if you wanna reduce the amount of stuff that pops up
UltraWelfare
UltraWelfareā€¢14mo ago
and try to stay away from (.NET Framework)
Pobiega
Pobiegaā€¢14mo ago
never even consider VB. F# is cool, but a fairly large paradigm shift
tedeni
tedeniOPā€¢14mo ago
framework: - .net 6.0 (long term support) - .net 7.0 (standard term support)
Pobiega
Pobiegaā€¢14mo ago
7 forget 6 exists. and move to 8 as soon as it comes out (in ~1 month)
UltraWelfare
UltraWelfareā€¢14mo ago
yeah don't stress about it too much.. Also in november 8 comes out which is an LTS i believe and doesn't have that much of a breaking change if you're using any libraries, just wait for them to update to net8 (should be done fairly quickly) then upgrade too šŸ˜„ (i mean any external nuget libraries)
Accord
Accordā€¢14mo 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