简体   繁体   English

.Net Maui 无法编译新的 macos 项目

[英].Net Maui cant compile a fresh macos project

I wanted to play a little with.Net Maui.我想玩一点.Net Maui。 So, I just used the maui-check tool to install the latest version of.Net Maui on my Mac (OSX 11.4).所以,我只是使用maui-check工具在我的Mac(OSX 11.4)上安装了最新版本的.Net Maui。 Then I created a blank macos project using the dotnet tool:然后我使用 dotnet 工具创建了一个空白的 macos 项目:

dotnet new macos

Trying to compile this blank new project I receive the following error:尝试编译这个空白的新项目,我收到以下错误:

/usr/local/share/dotnet/sdk/6.0.100-preview.5.21302.13/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ILLink.targets(181,5): error NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.

Any ideas how to fix this issue?任何想法如何解决这个问题?

Best regards...此致...

MAUI is not offical support for macOS yet as verion of 17.3 Visual studio.作为 17.3 Visual Studio 的版本,MAUI 尚未正式支持 macOS。 the most important is Pre-requisites your mac have to run latest Xcode 13 source: https://github.com/dotnet/maui/wiki/macOS-Install最重要的是 Mac 必须运行最新的 Xcode 13的先决条件来源: https://github.com/dotnet/maui/wiki/macOS-Install

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

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