I'm a bit stuck.
I have a Windows Server 2019 standard
According to the registry I have dotNet 4.8 installed
But I have no dotnet.exe anywhere. This usually lives in C:\Program Files\dotnet
I need the dotnet CLI so I can run tests, e.g. dotnet test [<PROJECT> | <SOLUTION> | <DIRECTORY> | <DLL>]
What do I need to install to get the CLI in order to run the tests using dotnet?
Asked
Active
Viewed 2,098 times
2

Lukasz Szczygielek
- 2,768
- 2
- 20
- 34

UncleZen
- 41
- 2
-
Does this answer your question? [Where is the dotnet command executable located on Windows?](https://stackoverflow.com/questions/42588392/where-is-the-dotnet-command-executable-located-on-windows) – Heretic Monkey Oct 20 '21 at 13:46
-
The `dotnet` executable is for the "new" .NET (version 5 and up), the registry is saying you have the "old" .NET Framework version 4. – Joe Sewell Oct 20 '21 at 13:48
-
1@JoeSewell And .NET Core... – Heretic Monkey Oct 20 '21 at 13:49
-
1@JoeSewell `dotnet` is a part of .NET Core at least from version 2.0+, so it covers not only .NET 5+. – Lukasz Szczygielek Oct 20 '21 at 13:51
-
Yes, thank you both for clarifying. The "new" .NET was known as .NET Core in versions 1.x, 2.x, and 3.x. – Joe Sewell Oct 20 '21 at 14:03
1 Answers
1
dotnet
tool is a part of .NET Core, so you have to install .NET 5 for example. You can check what version of .NET Core has been released on this page.
Tool is a part of SDK.
.NET Framework 4.8 is not a part of the .NET Core.

Lukasz Szczygielek
- 2,768
- 2
- 20
- 34
-
So I need .net Core, is that the runtime or the SDK? If Runtime, is it the one for running console, desktop or server apps? I want to run unit/specflow tests – UncleZen Oct 20 '21 at 13:56