microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.43k stars 2.21k forks source link

After installing .NET Framework 4.8 Offline version, I cannot find the "dotnet" folder in C:\Program Files?why? #1393

Open yechenn opened 1 year ago

yechenn commented 1 year ago

I installed .NET Framework 4.8 Offline version on Windows Server 2019, and it displayed a successful installation.

However, I cannot find the "dotnet" folder or the "dotnet.exe" file on my computer.

Previously, when I installed .NET 7, there was a "dotnet" folder under C:\Program Files.

Therefore, I suspect that I may not have successfully installed version 4.8.

Could someone please help me with this issue?

lextm commented 1 year ago

This is expected. Only ".NET Core" or ".NET" installers create that folder, not any ".NET Framework" installers.

tarizshahid commented 1 year ago

.NET Framework: This is the older version of the .NET runtime and framework. .NET Framework 4.8 is a Windows-only framework and does not include a dotnet executable. Instead, it provides libraries and runtime for running Windows applications that target .NET Framework.

.NET Core and .NET (starting from version 5): These are the newer, cross-platform versions of .NET. When you install .NET 5 or later, you get the dotnet command-line tool, which you can use to create, build, and run .NET applications.

Drofzz commented 1 year ago

.NET 5+ is fundamentally different

the .NET Framework 4.8.1 and down is an old framework using a different SDK entirely the .NET 5+ uses an SDK where the dotnet tool was implemented (taken from the .NET Core framework)