[Share Experiences] deepin V20.1怎么安装.net core sdk或.net core runtime Resolved
Tofloor
poster avatar
昨夜星辰入梦来
deepin
2021-01-15 18:17
Author

目前最新版的.net core为5.0,因为自己使用的3.1版本,所以以3.1版本为例进行安装。

1.先下载对应架构的.net core 3.1的压缩包

2.解压文件

mkdir -p "$HOME/dotnet" && tar zxf $HOME/Downloads/aspnetcore-runtime-3.1.11-linux-x64.tar.gz -C "$HOME/dotnet"

3.编辑~/.bashrc,在文件结尾配置环境变量

export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

目前本人amd架构按照这个方式配置成功,如果有错误之处或者不同意见欢迎指教。下面贴出来原文地址,如果其他操作系统或者架构有需要的,可以参考原文步骤。

原文地址:https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install

Reply Favorite View the author
All Replies
走钢丝
deepin
2021-01-15 20:29
#1

直接 apt 安装不更好,还能升级。

https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-debian

 

Reply View the author
sammy-621
deepin
2021-01-15 21:03
#2

其实,微软的文档算比较详细的

Reply View the author
juteman
deepin
2021-01-15 21:08
#3

我一版用snap装

Reply View the author
lcw0268
deepin
2021-01-15 23:03
#4

我迷迷糊糊走进来。

看到楼主漂亮的名字,好有文化。

水水就走。

 .net有啥用,刚才看楼主链接,也没有明白。

记得微软系统安装,一开始显示个小框,里面有.net。

Reply View the author
昨夜星辰入梦来
deepin
2021-01-15 23:19
#5
juteman

我一版用snap装

snap也试过一下,可能我哪里没配置好,Oracle Developer Tools for VS Code没办法识别安装了

Reply View the author
昨夜星辰入梦来
deepin
2021-01-15 23:20
#6
走钢丝

直接 apt 安装不更好,还能升级。

https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-debian

 

抛砖引玉,你们的安装方式都是可以成功的。只不过我需要的是3.1版本的,而且试了下apt安装的Oracle Developer Tools for VS Code也无法识别,才使用的手动安装

Reply View the author
昨夜星辰入梦来
deepin
2021-01-15 23:21
#7
lcw0268

我迷迷糊糊走进来。

看到楼主漂亮的名字,好有文化。

水水就走。

 .net有啥用,刚才看楼主链接,也没有明白。

记得微软系统安装,一开始显示个小框,里面有.net。

需要依赖.net core运行的软件或者插件需要安装一下

Reply View the author
juteman
deepin
2021-01-16 00:58
#8
昨夜星辰入梦来

snap也试过一下,可能我哪里没配置好,Oracle Developer Tools for VS Code没办法识别安装了

没用过这个,我现在直接.net5 + rider.

 

Reply View the author