当前位置:网站首页>WSL2安装.NET 6
WSL2安装.NET 6
2022-07-31 10:31:00 【Mark_Lee131】
Install .NET on WSL2
https://www.dotnetthailand.com/programming-cookbook/wsl-powershell-useful-scripts/install-dotnet
安装步骤 1
wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
接着输入命令
安装步骤 2
sudo apt update; \
sudo apt install -y apt-transport-https && \
sudo apt update && \
sudo apt install -y dotnet-sdk-6.0
验证安装
输出当前.NET版本:
dotnet --version
或
输出已安装的 .NET列表:
dotnet --list-sdks
如需安装其他版本 .NET
按照以下格式修改上述命令中的最后一个sudo apt install -y dotnet-sdk-6.0
中的.NET版本:{product}-{type}-{version}
对应参数可选值:
- product:
dotnet
,aspnetcore
- type:
sdk
,runtime
- version:
6.0
,5.0
,3.1
,3.0
,2.1
例:如需安装 .NET Core 3.1 SDK, 需要修改成的命令如下:sudo apt install -y dotnet-sdk-3.1
边栏推荐
猜你喜欢
Emotional crisis, my friend's online dating girlfriend wants to break up with him, ask me what to do
《JUC并发编程 - 高级篇》06 - 共享模型之不可变(不可变类的设计 | 不可变类的使用 | 享元模式)
Summary of three methods for SQL deduplication
Gradle系列——Groovy概述,基础使用(基于Groovy文档4.0.4)day2-1
学习笔记——七周成为数据分析师《第二周:业务》:业务分析框架
Redis缓冲穿透和缓冲击穿工具类的封装
The big-eyed Google Chrome has also betrayed, teach you a trick to quickly clear its own ads
Mybaits 常用问题详解
darknet 源码阅读笔记-01-activation_kernels.cu
GZIPInputStream 类源码分析
随机推荐
Dart Log tool class
A Method for Ensuring Data Consistency of Multi-Party Subsystems
Come n times - 09. Implement queues with two stacks
sql力扣刷题六
细讲DDD领域驱动设计
Come n times - 07. Rebuild the binary tree
Sql优化总结!详细!(2021最新面试必问)
Build finished with errors/Executable Not Found
乐观锁和悲观锁
darknet 源码阅读笔记-01-activation_kernels.cu
KVM virtualization job
半个月时间把MySQL重新巩固了一遍,梳理了一篇几万字 “超硬核” 文章!
Implement a thread pool
解决rpc error: code = Unimplemented desc = method CheckLicense not implemented
如何判断自己是否适合IT行业?方法很简单
Day113. Shangyitong: user authentication, Alibaba Cloud OSS, patient management
如何优雅的停止一个线程?
Gradle series - Groovy overview, basic use (based on Groovy document 4.0.4) day2-1
【LeetCode】118.杨辉三角
What is the encoding that starts with ?