1. 打开dart官网 获取 Dart SDK | Dart
2. 安装Chocolatey,以管理员身份打开cmd,输入下面代码
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
接着安装dart-sdk
choco install dart-sdk
3. 在vscode里安装dart、code runner插件
4. 新建文件夹dart/index.dart,右键点击代码处run code 运行
5. 如果出现乱码,打开setting -> extension -> settting.json插入下面代码重启vscode即可
"code-runner.runInTerminal": true,
6. flutter sdk已包含dart sdk,此安装只是为了学习dart语言
7. 运行成功的结果
标签:code,环境,System,dart,Net,搭建,安装,sdk From: https://www.cnblogs.com/yseraaa/p/16601435.html