.Net 和Mono 的练习、区别://TODO

.NETCore为.NETFramework与Mono提供统一的基础。.NETFramework将在Windows上作为.NETCore的一部分继续发展,而Mono则作为跨平台版本存在。原有的.NET基础类库将在.NETCore中得到改进和支持。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考前辈文章:.NET Core与.NET Framework、Mono之间的关系

                          什么是 .NET Framework?

比如.NET和Mono两者是完全独立的,很多代码是平台无关的,所以很多工作都是重复劳动。

.NET跨平台的最大障碍就是基础类库的跨平台,由此也可以看出.NET基础类库的重要性。Mono也是在基础类库的实现上存在瑕疵,比如对WPF,WCF等框架的支持上不完善。像WPF这样的用户界面开发技术,各个平台上都有自己的原生开发库,用户界面应用原生开发,iOS应用应该用iOS的用户界面库才会让人觉得在iOS上最合适,.NET应用应该用微软的Windows用户界面库。

随着.NET Core Framework的开发完成,.NET Framework与Mono将基于.NET Core重新构建。.NET Framework将成为.NET Core在Windows上的一个发行版,Mono将成为.NET Core的一个跨平台发行版。

jun@jun-VMware-Virtual-Platform:~$ sudo apt update 命中:1 http://mirrors.aliyun.com/ubuntu jammy InRelease 命中:2 http://mirrors.aliyun.com/ubuntu jammy-security InRelease 命中:3 http://mirrors.aliyun.com/ubuntu jammy-updates InRelease 忽略:4 https://download.mono-project.com/repo/ubuntu stable-noble InRelease 忽略:5 https://download.mono-project.com/repo/ubuntu stable-focal/snapshots/6.8.0.123 InRelease 忽略:6 https://download.mono-project.com/repo/ubuntu stable-focal InRelease 命中:7 http://mirrors.aliyun.com/ubuntu jammy-proposed InRelease 命中:8 http://mirrors.aliyun.com/ubuntu jammy-backports InRelease 命中:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease 命中:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease 命中:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease 命中:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-security InRelease 命中:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease 命中:14 https://artifacts.elastic.co/packages/7.x/apt stable InRelease 命中:15 http://repo.mysql.com/apt/ubuntu noble InRelease 命中:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease 命中:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-proposed InRelease 命中:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease 命中:19 http://download.onlyoffice.com/repo/debian squeeze InRelease 命中:20 http://security.ubuntu.com/ubuntu noble-security InRelease 命中:21 https://download.docker.com/linux/ubuntu noble InRelease 命中:22 https://deb.nodesource.com/node_16.x nodistro InRelease 命中:23 https://d2nlctn12v279m.cloudfront.net/repo/mono/ubuntu focal InRelease 命中:24 https://packages.redis.io/deb noble InRelease 忽略:4 https://download.mono-project.com/repo/ubuntu stable-noble InRelease 忽略:5 https://download.mono-project.com/repo/ubuntu stable-focal/snapshots/6.8.0.123 InRelease 忽略:6 https://download.mono-project.com/repo/ubuntu stable-focal InRelease 命中:25 https://ppa.launchpadcontent.net/dotnet/backports/ubuntu noble InRelease 忽略:4 https://download.mono-project.com/repo/ubuntu stable-noble InRelease 忽略:5 https://download.mono-project.com/repo/ubuntu stable-focal/snapshots/6.8.0.123 InRelease 忽略:6 https://download.mono-project.com/repo/ubuntu stable-focal InRelease 错误:4 https://download.mono-project.com/repo/ubuntu stable-noble InRelease 无法连接上 download.mono-project.com:443 (13.107.246.73)。 - connect (111: 拒绝连接) 错误:5 https://download.mono-project.com/repo/ubuntu stable-focal/snapshots/6.8.0.123 InRelease 不能连接到 download.mono-project.com:https: 错误:6 https://download.mono-project.com/repo/ubuntu stable-focal InRelease 不能连接到 download.mono-project.com:https: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 有 294 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。 W: 无法下载 https://download.mono-project.com/repo/ubuntu/dists/stable-noble/InRelease 无法连接上 download.mono-project.com:443 (13.107.246.73)。 - connect (111: 拒绝连接) W: 无法下载 https://download.mono-project.com/repo/ubuntu/dists/stable-focal/snapshots/6.8.0.123/InRelease 不能连接到 download.mono-project.com:https: W: 无法下载 https://download.mono-project.com/repo/ubuntu/dists/stable-focal/InRelease 不能连接到 download.mono-project.com:https: W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
最新发布
07-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值