C
C#2mo ago
Peter101

✅ App building problem

I am new to that stuff and asked Gemini for help. But a few steps further there the problem came: Gemini said to install dotnet from https://dotnet.microsoft.com/download/dotnet/8.0 and then opened a new Folder for the App and Gemini said to open that folder in VS Code and write in the Terminal that Code: dotnet new wpf -n AppNameOfFolder That command didn't work, it should make WPF-Projekt and the folder should contain these: MainWindow.xaml, AppNameOfFolder.csproj Spoiler they didn't, so what should I do?
Microsoft
Download .NET 8.0 (Linux, macOS, and Windows) | .NET
.NET 8.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
35 Replies
Angius
Angius2mo ago
Right, so, AI garbage strikes again. First of all, .NET 9 is latest Need more info though: * Did you install the runtime or the SDK? * What OS are you using? * What error did you get from dotnet new?
Peter101
Peter101OP2mo ago
I am on Windows and got that message: The command could not be loaded, possibly because: * You intended to execute a .NET application: The application 'new' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found. Download a .NET SDK: https://aka.ms/dotnet-download Learn about SDK resolution: https://aka.ms/dotnet/sdk-not-found
Microsoft
Browse all .NET versions to download | .NET
Official .NET downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Select which .NET version to use - .NET
Learn how .NET automatically finds and chooses runtime versions for your program. Additionally, this article teaches you how to force a specific version.
Peter101
Peter101OP2mo ago
i'll try the 9th version Same answer should the .NET SDK be in the folder, where the App is?
Angius
Angius2mo ago
Seems like you got the runtime, not the SDK? See what dotnet info and dotnet --list-sdks show
Peter101
Peter101OP2mo ago
wheres that?
Angius
Angius2mo ago
In whatever console Like the dotnet new that you did
Peter101
Peter101OP2mo ago
both read answers, it seas that i wrote it wrong, i didnt + dodnet --list.sdks + ~~ + CategoryInfo : ObjectNotFound: (dodnet:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Angius
Angius2mo ago
dotnet Not dodnet
Peter101
Peter101OP2mo ago
The command could not be loaded, possibly because: * You intended to execute a .NET application: The application 'info' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found. Download a .NET SDK: https: //aka.ms/dotnet-download Learn about SDK resolution: https: //aka.ms/dotnet/sdk-not-found same there
Angius
Angius2mo ago
Also, --list-sdks Not --list.sdks dotnet --list-sdks And dotnet info Just copy those commands from here
Peter101
Peter101OP2mo ago
--list-sdks The command could not be loaded, possibly because: * You intended to execute a .NET application: The application '--list.sdks' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found. Download a .NET SDK: https:/ /aka.ms/dotnet-download Learn about SDK resolution: https:/ /aka.ms/dotnet/sdk-not-found
Angius
Angius2mo ago
No description
Peter101
Peter101OP2mo ago
should the installer be in the App folder?
Angius
Angius2mo ago
Seems you typed dotnet --list.sdks again
Peter101
Peter101OP2mo ago
with dotnet --list-sdks is no responce
Angius
Angius2mo ago
.NET SDK is installed globally, it doesn't need to have any bits of it in the app folder Okay, and dotnet info?
Peter101
Peter101OP2mo ago
says that 'info' does not exxist and .NET SDK commands wasnt found
Angius
Angius2mo ago
Right... How did you install the SDK, exactly? Which link did you click to download it? Maybe a stupid question, but did you run the downloaded installer?
Peter101
Peter101OP2mo ago
yeah
Peter101
Peter101OP2mo ago
https://dotnet.microsoft.com/en-us/download/dotnet/9.0 with that link 9.0.7 the SDK 9.0.303 the Windows x86 Version
Microsoft
Download .NET 9.0 (Linux, macOS, and Windows) | .NET
.NET 9.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Angius
Angius2mo ago
Why x86?
Peter101
Peter101OP2mo ago
dont know
Angius
Angius2mo ago
Are you using a 32-bit OS, somehow, in the year of our lord 2025? Right. Uninstall any 32-bit SDKs you installed first
Peter101
Peter101OP2mo ago
i dont know. just Windows 10 Pro
Angius
Angius2mo ago
The, install the 64-bit one Yeah, regular user-facing OSes don't really come in 32 bits anymore So it's safe to say you should uninstall the 32-bit SDKs and install the 64-bit one
Peter101
Peter101OP2mo ago
ok So, in Settings in the System Info says 64-Bit-System, x64-based processor Now with Version 9.0.303 it answered with: Welcome to .NET 9.0? ....
Peter101
Peter101OP2mo ago
it didä
No description
Angius
Angius2mo ago
Nice
Peter101
Peter101OP2mo ago
finally i can do the App, but with no expierince at all.
Angius
Angius2mo ago
$helloworld
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2mo ago
* Open powershell in a terminal in admin mode as in the following video: https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4 * copy/paste the following script:
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
in case of an invalid setup detected, it will: * tell you that it did (or not) detected an invalid Path setup * in case some action are require it will ask you to Press Enter to confirm
Angius
Angius2mo ago
x86 SDKs have been removed, x64 installed, not a path issue anymore
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?