Çözüldü Visual Studio Code'da konsol açılmıyor

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.

tnw

Centipat
Katılım
7 Temmuz 2022
Mesajlar
606
Çözümler
2
Yer
Ankara
C# öğreniyorum ve Terminale "dotnet new console" yazdığımda 3 adet dosya açılması gerekirken ben şu hatayı alıyorum;

Kod:
dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ dotnet new console

+ ~~~~~~

    + CategoryInfo          : ObjectNotFound: (dotnet:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

Çözümü nedir?
 
Son düzenleyen: Moderatör:
Çözüm
.NET'i kaldırıp yeniden kurmayı denediniz mi?
O halde variablelara eklemelisiniz.
Win+R ile çalıştır menüsünü açın ve oraya sysdm.cpl yazıp tamama tıklayın.
Oradan gelişmişe gelin ve ortam değişkenlerine tıklayın.
Oradan kullanıcı için yeni seçeneğine tıklayın ve ayarları aşağıdaki gibi yapın:

Ardından tamama tıklayın ve terminale dotnet new console yazın. Çalışması gerek.
 
Dediklerinizi teker teker yaptım ve bu hatayı aldım;

Kod:
dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ dotnet new console
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (dotnet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
.NET'i kaldırıp yeniden kurmayı denediniz mi?
 
Çözüm
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…