.NET和.NET Core的dotnet.exe命令 [英] dotnet.exe command for .NET and .NET Core
问题描述
我已经安装了".NET Framework"在我的电脑上.我还安装了".NET Core Framework".
I have installed ".NET Framework" on my computer. I have also installed ".NET Core Framework".
运行 dotnet.exe
命令时使用哪个框架?我以为会有2个 dotnet.exe
命令,但是只有一个.
Which framework is used, when I run the dotnet.exe
command? I was thinking there will be 2 dotnet.exe
commands, but there is only one.
推荐答案
The dotnet.exe
tool belongs to .Net Core CLI (Command Line Interface), there really isn't an equivalent in the older .Net Framework.
您的系统上可以有多个 dotnet.exe
文件,但它们都属于.Net Core,因为它允许并排安装多个版本.除非您通过
You can have multiple dotnet.exe
files on your system, but they would all be .Net Core, as it allows side-by-side installations of multiple versions. It will default to the newest version (including pre-release versions), unless you designate which one to use via a global.json
file.
这篇关于.NET和.NET Core的dotnet.exe命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!