错误信息
Error: Could not resolve dotnet path!
An error occurred while installing .NET (6.0): .NET Acquisition Failed: Installation failed: Error: .NET installation timed out. You may need to change the timeout time if you have a slow connection.
Please see: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts. Note that our websites may be blocked in China or experience significant timeouts, and you may want to install .NET manually.
配置
进入 VSCode 设置,进入拓展 CMake Language Support
配置 Dotnet Path
C:/Program Files/dotnet/dotnet.exe