Çö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
604
Çö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?
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?
.NET Framework yüklü mü? Yüklü değilse yükleyin. 'dotnet' komutunu bulamıyor. VSC ile alakalı değil.
 
Yani VSC terminaline o komutu yazın.

Eğer o komut işe yaramazsa "C:\\Program Files\\dotnet\\dotnet.exe" new console olarak deneyin.

İ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
 

Geri
Yukarı