在运行某些dotnet
命令时,例如dotnet clean
,dotnet --info
,它会生成一堆大约3分钟的跟踪/记录信息,然后执行命令。
我在Windows 10上工作,我尝试删除所有.NET核心sdk和运行时,然后重新安装最新版本:sdk 2.2.300,运行时2.2.5
我还检查了Fusion日志记录,该日志记录未启用
跟踪看起来像这样:
Tracing enabled
--- Invoked dotnet [version: 2.2.5, commit hash: 0a3c9209c044e7772631cd0b926630c75ac13319] main = {
C:\Program Files\dotnet\dotnet.exe
--info
}
Reading fx resolver directory=[C:\Program Files\dotnet\host\fxr]
Considering fxr version=[2.2.5]...
Detected latest fxr version=[C:\Program Files\dotnet\host\fxr\2.2.5]...
Resolved fxr [C:\Program Files\dotnet\host\fxr\2.2.5\hostfxr.dll]...
Loaded library from C:\Program Files\dotnet\host\fxr\2.2.5\hostfxr.dll
Invoking fx resolver [C:\Program Files\dotnet\host\fxr\2.2.5\hostfxr.dll] v2
Host path: [C:\Program Files\dotnet\dotnet.exe]
Dotnet path: [C:\Program Files\dotnet\]
App path: [C:\Program Files\dotnet\dotnet.dll]
Tracing enabled
--- Invoked hostfxr v2 [commit hash: 0a3c9209c044e7772631cd0b926630c75ac13319] main
Checking if CoreCLR path exists=[C:\Program Files\dotnet\coreclr.dll]
--- Executing in muxer mode...
Using the provided arguments to determine the application to execute.
Application '--info' is not a managed executable.
--- Resolving dotnet from working dir
Probing path [C:\Users\YUZ\global.json] for global.json
Probing path [C:\Users\global.json] for global.json
Probing path [C:\global.json] for global.json
Terminating global.json search at [C:\]
Searching SDK directory in [C:\Program Files\dotnet\]
--- Resolving SDK version from SDK dir [C:\Program Files\dotnet\sdk]
Considering version... [2.2.300]
Considering version... [NuGetFallbackFolder]
Checking if resolved SDK dir [C:\Program Files\dotnet\sdk\2.2.300] exists
Resolved SDK dir is [C:\Program Files\dotnet\sdk\2.2.300]
Searching SDK directory in [C:\Program Files\dotnet]
--- Resolving SDK version from SDK dir [C:\Program Files\dotnet\sdk]
Considering version... [2.2.300]
Considering version... [NuGetFallbackFolder]
Checking if resolved SDK dir [C:\Program Files\dotnet\sdk\2.2.300] exists
Resolved SDK dir is [C:\Program Files\dotnet\sdk\2.2.300]
Found CLI SDK in: C:\Program Files\dotnet\sdk\2.2.300
Using dotnet SDK dll=[C:\Program Files\dotnet\sdk\2.2.300\dotnet.dll]
Using the provided arguments to determine the application to execute.
Using dotnet root path [C:\Program Files\dotnet\]
App runtimeconfig.json from [C:\Program Files\dotnet\sdk\2.2.300\dotnet.dll]
Runtime config is cfg=C:\Program Files\dotnet\sdk\2.2.300\dotnet.runtimeconfig.json dev=C:\Program Files\dotnet\sdk\2.2.300\dotnet.runtimeconfig.dev.json