gpt4 book ai didi

Can't find .NET MAUI in the list of VS(在VS列表中找不到.NET Maui)

转载 作者:bug小助手 更新时间:2023-10-28 11:09:41 24 4
gpt4 key购买 nike



I want to create a new project by using .NET MAUI, In Microsoft tutorial they said the Prerequisites is The latest preview of Visual Studio 2022 17.1, after installing the last preview version with .NET MAUI, I couldn't find the project from the list.

This what I didenter image description here

我想使用.NET Maui创建一个新项目,在Microsoft教程中,他们说先决条件是最新的Visual Studio 2022 17.1预览版,在安装了.NET Maui的最后一个预览版本后,我从列表中找不到该项目。这就是我所做的


enter image description here


Can some give me ad advise to go around this problem.

Thanks

能给我一些广告建议绕过这个问题吗?谢谢


更多回答

Restart Visual Studio and search at the top for MAUI, if it's still not getting found, restart your PC. If that doesn't help, you can try reinstalling/unchecking mobile development and rechecking/reinstalling it, which might fix the issue, it has worked first try for me. It is preview/beta software which means that there are bugs, so everything might not work as expected. Kind Regards!

重新启动Visual Studio并在顶部搜索毛伊岛,如果仍然找不到它,请重新启动您的PC。如果这不起作用,你可以尝试重新安装/取消选中移动开发,然后重新检查/重新安装,这可能会解决问题,它对我来说已经奏效了。它是预览版/测试版软件,这意味着有错误,所以一切可能不会像预期的那样工作。致以亲切的问候!

Also try running “Repair” on that VS, in VS Installer.

也可以尝试在VS安装程序中对该VS运行“Repair”。

Still not solved with visual studio comm 2022--17.7.3

仍未使用Visual Studio Comm 2022解决--17.7.3

优秀答案推荐

Not sure why this sometimes happens, what fixes it is to install the templates manually at this time. From an (elevated) command prompt run: dotnet new --install Microsoft.Maui.Templates

不确定为什么有时会发生这种情况,此时手动安装模板的修复方法是什么。从(提升的)命令提示符运行:DotNet new--Install Microsoft.Maui.Templates


That should succeed and the templates should then be visible in Visual Studio as well.

这应该会成功,然后模板也应该在Visual Studio中可见。


更多回答

Does the command maui-check solve this issue as well?

命令maui-check也能解决这个问题吗?

I'm not sure what the current status is of maui-check. I think it should, but not 100% sure. I think for workloads and templates the official tooling is now recommended

我不确定毛伊岛目前的状况如何。我认为应该是这样,但不是百分之百肯定。我认为对于工作负载和模板,现在推荐使用官方工具

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com