Çö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
602
Çö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
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?
İki komutu da denedim ve ikisinde de şu hatayı aldım;

Kod:
At line:1 char:41
+ "C:\\Program Files\\dotnet\\dotnet.exe" new console
+                                         ~~~
Unexpected token 'new' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken
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:
1660577497302.png

Ardından tamama tıklayın ve terminale dotnet new console yazın. Çalışması gerek.
 
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:
Eki Görüntüle 1486718
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
 
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

Yeni konular

Geri
Yukarı