C
C#•2y 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•2y 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•2y ago
Oh, another case of project missing from the solution, huh?
Pobiega
Pobiega•2y 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•2y 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•2y ago
dw, I'm 99% sure I know what it is and can fix it šŸ™‚ just need @tedeni to wake up
tedeni
tedeniOP•2y ago
how do I open 's terminal' ?
Pobiega
Pobiega•2y ago
press windows key, type "terminal" anything show up?
Pobiega
Pobiega•2y ago
No description
tedeni
tedeniOP•2y ago
well that's the commant prompt, not terminal
Pobiega
Pobiega•2y ago
call it what you want
tedeni
tedeniOP•2y ago
I'm on Windows 10
Pobiega
Pobiega•2y ago
command prompt works fine
tedeni
tedeniOP•2y ago
got it open šŸ‘
Pobiega
Pobiega•2y ago
type dotnet --info and show the results
tedeni
tedeniOP•2y 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•2y ago
.. thats not what I expected, but very easily fixed you don't have an SDK installed at all
Pobiega
Pobiega•2y ago
go here, click that big button, install it oh and make sure you close VS before you install
DĪ£X
DĪ£X•2y ago
you need a separate sdk after installing vs? it should be included with the installer
Pobiega
Pobiega•2y ago
it should have indeed but it wasnt somehow
DĪ£X
DĪ£X•2y ago
bummer
Pobiega
Pobiega•2y ago
that info dump up there doesnt lie, it sees 2 runtimes, both x64, but no SDKs
tedeni
tedeniOP•2y ago
goodness, you'd think it'd be a 1-file installer for everything
Pobiega
Pobiega•2y 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•2y ago
i wonder if that info shows something different when running from the dev-console in vs
Pobiega
Pobiega•2y ago
it doesnt
UltraWelfare
UltraWelfare•2y 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•2y ago
correct.
UltraWelfare
UltraWelfare•2y 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•2y ago
ayy
No description
UltraWelfare
UltraWelfare•2y ago
Sorry I replied to the wrong person, meant to reply to @tedeni Welcome :)!
Pobiega
Pobiega•2y 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•2y ago
Also fun-fact if you install "JetBrains Rider" (Assumming you bought it) it autoinstalls the dotnet sdk
Pobiega
Pobiega•2y ago
but the x64 has a differnt path, and is also called dotnet.exe, so its blocked by PATH ordering
tedeni
tedeniOP•2y ago
aight we're back here, what next?
No description
Pobiega
Pobiega•2y ago
did you restart Visual studio?
tedeni
tedeniOP•2y ago
yup
Pobiega
Pobiega•2y ago
if so, go ahead and make a new project
tedeni
tedeniOP•2y ago
blank solution fine?
Pobiega
Pobiega•2y ago
no probably a console app
UltraWelfare
UltraWelfare•2y ago
Create a new one just to be sure the IDE sees the dotnet
tedeni
tedeniOP•2y ago
No description
UltraWelfare
UltraWelfare•2y ago
I guess VS doesn't see dotnet šŸ˜› Wait did you update your VS? It has to be above 17.5
tedeni
tedeniOP•2y ago
Reboot windows? HmmRTX
Pobiega
Pobiega•2y ago
nah its probably missing the workload shut VS down start "visual studio installer" windows key -> "installer"
Pobiega
Pobiega•2y ago
No description
tedeni
tedeniOP•2y ago
it.s 17.4 something atm
Pobiega
Pobiega•2y ago
No description
UltraWelfare
UltraWelfare•2y ago
yeah... it won't ever see dotnet 7 >= 17.5 required
Pobiega
Pobiega•2y ago
lets make sure the right workload is in thou you should update too, but lets just click modify first
Pobiega
Pobiega•2y ago
No description
Pobiega
Pobiega•2y 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•2y ago
found it - install while downloading, or - modify
Pobiega
Pobiega•2y ago
?
tedeni
tedeniOP•2y ago
No description
UltraWelfare
UltraWelfare•2y ago
just click modify
Pobiega
Pobiega•2y ago
ah, yeh the other one isnt a button, its a dropdown šŸ™‚
UltraWelfare
UltraWelfare•2y ago
leave it do itself on the modification, but also don't forget to update otherwise dotnet 7 aint gonna work šŸ˜„
Pobiega
Pobiega•2y ago
^
UltraWelfare
UltraWelfare•2y ago
also you can also make sure dotnet 7 is correctly installed
UltraWelfare
UltraWelfare•2y ago
No description
UltraWelfare
UltraWelfare•2y ago
by checking the other tab
UltraWelfare
UltraWelfare•2y ago
No description
Pobiega
Pobiega•2y ago
uhm actually you already have 17.7.4?
Pobiega
Pobiega•2y ago
No description
UltraWelfare
UltraWelfare•2y ago
or is this different? šŸ¤” oh yeah seems like its updated probably missing the workload
Pobiega
Pobiega•2y ago
yup
UltraWelfare
UltraWelfare•2y ago
that's why no templates don't forget to restart your house after its done
Pobiega
Pobiega•2y ago
VS is black magic, afaik its has its own project templates, not related to dotnet new at all
UltraWelfare
UltraWelfare•2y 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•2y 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•2y 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•2y ago
sooo many beginners do it by mistake, not realizing there are two "console app" templates etc
tedeni
tedeniOP•2y ago
17.7.4 installed
UltraWelfare
UltraWelfare•2y ago
reboot your house visual studio, and it should be fine you should see the templates
tedeni
tedeniOP•2y ago
No description
UltraWelfare
UltraWelfare•2y ago
yay šŸ˜„
tedeni
tedeniOP•2y ago
top console app?
Pobiega
Pobiega•2y ago
yep
UltraWelfare
UltraWelfare•2y ago
yeah the other one is F# šŸ˜› and the other is VB
Pobiega
Pobiega•2y ago
you can set "language" to C# if you wanna reduce the amount of stuff that pops up
UltraWelfare
UltraWelfare•2y ago
and try to stay away from (.NET Framework)
Pobiega
Pobiega•2y ago
never even consider VB. F# is cool, but a fairly large paradigm shift
tedeni
tedeniOP•2y ago
framework: - .net 6.0 (long term support) - .net 7.0 (standard term support)
Pobiega
Pobiega•2y ago
7 forget 6 exists. and move to 8 as soon as it comes out (in ~1 month)
UltraWelfare
UltraWelfare•2y 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•2y 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?