当前位置:   article > 正文

简单实用配置VScode的C# Framework环境_vscode c#framework

vscode c#framework
  • 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" } 
],

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/557005
推荐阅读
相关标签
  

闽ICP备14008679号