当前位置:网站首页>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
边栏推荐
猜你喜欢

【LeetCode】21. 合并两个有序链表

Come n times with the sword--05. Replace spaces
![[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system](/img/af/341c3c3f7e5bcc9172059657c08c4b.png)
[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system

The fifth chapter

SQL学习笔记——REGEXP运算符

Make your own dataset in FCN and train it

Data Middle Office Construction (6): Data System Construction

Redis缓存面临的缓存雪崩问题

Redis缓冲穿透和缓冲击穿工具类的封装

单点登录原理及实现方式
随机推荐
[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system
Web系统常见安全漏洞介绍及解决方案-sql注入
逆置问题--重点
C#多态的实现
双链表的插入和删除
业务-(课程-章节-小节)+课程发布一些业务思路
小程序如何使用订阅消息(PHP代码+小程序js代码)
WEB核心【记录网站登录人数,记录用户名案例】Cookie技术实现
细讲DDD领域驱动设计
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
Deletion of the sequence table
双链表的创建
SQL去重的三种方法汇总
SQLSERVER将子查询数据合并拼接成一个字段
【23提前批】北森云计算-测开面经
实现弹框组件
KVM virtualization job
出色的移动端用户验证
NowCoderTOP17-22 Binary search/sort - continuous update ing
Usage of exists in sql