dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.17k stars 1.74k forks source link

Cross-OS native compilation is not supported. #23869

Open akoc95 opened 3 months ago

akoc95 commented 3 months ago

Description

It's a new project. No any changes. Once I switch < PublishAot >true< /PublishAot > error below.

Severity Code Description Project File Line Suppression State Error (active) Cross-OS native compilation is not supported. MauiTestAot(net8.0-android) .nuget\packages\microsoft.dotnet.ilcompiler\8.0.7\build\Microsoft.NETCore.Native.Publish.targets 60

net8.0-android; Exe MauiApp1 true true enable enable android-arm64 true MauiApp1 com.companyname.mauiapp1 1.0 1 28.0

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

<_ResolvedCopyLocalPublishAssets Remove="@(_AssembliesToSkipPublish)" /> <_ResolvedCopyLocalPublishAssets Include="@(_LinkedResolvedAssemblies)" /> <_NativeIntermediateAssembly Include="@(IntermediateAssembly->'$(NativeOutputPath)%(Filename)$(NativeBinaryExt)')" /> <_symbolExt Condition="'$(OS)' == 'Windows_NT'">$(NativeSymbolExt) <_symbolExt Condition="'$(OS)' != 'Windows_NT'">$(NativeBinaryExt)$(NativeSymbolExt) <_symbolSourcePath>$(NativeOutputPath)$(TargetName)$(_symbolExt) <_symbolTargetPath>$(PublishDir)\$(TargetName)$(_symbolExt) <_symbolIsFile Condition="'$(NativeSymbolExt)' == '.dsym'">false <_symbolIsFile Condition="'$(_symbolIsFile)' == ''">true <_symbolRecursivePath Include="$(NativeOutputPath)$(TargetName)$(_symbolExt)/**/*" />
github-actions[bot] commented 3 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

RoiChen001 commented 2 months ago

I can repro this issue at Android platform on the latest 17.11.0 Preview 5.0 (8.0.61&8.0.70).