-
1. 设置window path环境csc变量
D:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\Roslyn
或者 C:\Windows\Microsoft.NET\Framework64\v4.0.30319
-
2. 设置"code-runner.executorMap"
"csharp": "cd $dir && csc $fileName && start $dir$fileNameWithoutExt.exe",
或者//"csharp": "cd $dir && csc $fileName && cmd /c $dir$fileNameWithoutExt.exe",
(下载code-runnerCode Runner - Visual Studio Marketplace)
-----------------------------------
-
新版C# Dev Kit插件问题(net6+)
vscode 安装新版C#插件问题(C# Language & C# Dev Kit Extension...)
NET SDK Download timeout
安装新版c#插件, 遇到自动下载超时,无法自动下载
"dotnetAcquisitionExtension.existingDotnetPath": [
{ "extensionId": "ms-dotnettools.csharp",
"path": "C:\\Program Files\\dotnet\\dotnet.exe" },
{ "extensionId": "ms-dotnettools.csdevkit",
"path": "C:\\Program Files\\dotnet\\dotnet.exe" } ],