简体   繁体   English

.net Maui:如何获取 Maui 版本号?

[英].net Maui: How get Maui version number?

How do I know what version of Maui I'm on/using.我怎么知道我正在使用/使用的毛伊岛版本。 I used the Visual Studio installer and tried checking, but I can't tell if I'm on preview 3 which I originally installed or have I managed to update to GA?我使用了 Visual Studio 安装程序并尝试检查,但我不知道我是在最初安装的预览版 3 上还是我设法更新到 GA?

Bizarre that I can't find this information from searching.奇怪的是我无法通过搜索找到此信息。 :( :(

Yep, it's kind of curious not having this info.是的,没有这个信息有点奇怪。 I found this article and it mentions我找到了这篇文章,它提到

To acquire .NET MAUI RC3 on Windows, install or update Visual Studio 2022 Preview to version 17.3 Preview 1. In the installer, confirm .NET MAUI (preview) is checked under the “Mobile Development with .NET” workload.要在 Windows 上获取 .NET MAUI RC3,请安装 Visual Studio 2022 预览版或将其更新到版本 17.3 预览版 1。在安装程序中,确认在“使用 .NET 进行移动开发”工作负载下选中了 .NET MAUI(预览版)。

So, I guess you need to check your VS version in order to find MAUI version too.所以,我想你也需要检查你的 VS 版本才能找到 MAUI 版本。

I found this information by using the dotnet command line tool:我通过使用 dotnet 命令行工具找到了这些信息:

dotnet workload list dotnet 工作负载列表

The results I got looked like this:我得到的结果是这样的:

Installed Workload Ids      Manifest Version                              Installation Source
--------------------------------------------------------------------------------------------------------
maui-android                6.0.540/6.0.400                               SDK 6.0.400, VS 17.3.32901.215
maui-tizen                  6.0.540/6.0.400                               SDK 6.0.400
maui-windows                6.0.540/6.0.400                               VS 17.3.32901.215
maui-maccatalyst            6.0.540/6.0.400                               VS 17.3.32901.215
maccatalyst                 15.4.446-ci.-release-6-0-4xx.446/6.0.400      VS 17.3.32901.215
maui-ios                    6.0.540/6.0.400                               VS 17.3.32901.215
ios                         15.4.446-ci.-release-6-0-4xx.446/6.0.400      VS 17.3.32901.215
android                     32.0.465/6.0.400                              VS 17.3.32901.215

Use `dotnet workload search` to find additional workloads to install.

dotnet has a multitude of options for installing and updating stuff too. dotnet 也有许多用于安装和更新内容的选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM