Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs2022 .net8.0 mauiAPP can't run #19084

Closed
ikraddy opened this issue Nov 28, 2023 · 12 comments
Closed

vs2022 .net8.0 mauiAPP can't run #19084

ikraddy opened this issue Nov 28, 2023 · 12 comments
Labels
s/needs-attention Issue has more information and needs another look

Comments

@ikraddy
Copy link

ikraddy commented Nov 28, 2023

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 APT2067 failed processing manifest.
MauiApp1 C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.43\tools\Xamarin.Android.Aapt2.targets 214
错误 APT2260 resource mipmap/appicon (aka com.companyname.mauiapp1:mipmap/appicon) not found.

This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. MauiApp1 F:\Develop\Projects\csharp\2023\MauiApp1\MauiApp1\Platforms\Android\AndroidManifest.xml 1
错误 APT2260 resource mipmap/appicon_round (aka com.companyname.mauiapp1:mipmap/appicon_round) not found.

This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. MauiApp1 F:\Develop\Projects\csharp\2023\MauiApp1\MauiApp1\Platforms\Android\AndroidManifest.xml 1

@mattleibow
Copy link
Member

Can you attach a binlog so we can have a look: https://github.com/xamarin/xamarin-macios/wiki/Diagnosis

@mattleibow mattleibow added the s/needs-info Issue needs more info from the author label Nov 28, 2023
@ghost
Copy link

ghost commented Nov 28, 2023

Hi @ikraddy. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ikraddy
Copy link
Author

ikraddy commented Nov 29, 2023

MSBuildReproLogs.zip
ok,here it is.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Nov 29, 2023
@crobinson-expl
Copy link

I get the same three errors on a file...new .NET MAUI App template project using .NET 8.0 in VS 2022 17.8.2.

All I did after creating the project was switch my debugging target to my Android local (emulator) device and right-click Rebuild on the solution, which only has the new project in it.

image image

Here is the binlog file created from my Developer Powershell terminal in VS 2022 using command dotnet build MauiApp1.csproj /bl:msbuild.binlog:
msbuild_binlog.zip

@WaGi-Coding
Copy link

WaGi-Coding commented Dec 2, 2023

same here, just wanted to get into MAUI and thats what you get greeted with when trying the basic boilerplate of a new project

This fixed it for me: #18904 (comment)

@mobycorp
Copy link

I've been getting these same three errors on a sporadic basis for the past several weeks. I can't tie it specifically to a MAUI or Visual Studio version. When I see these errors, I do a clean, exit, and restart VS. That will clear up this issue for a while. I also get errors about these files being "open by another process" way too often... This is very disruptive.

@Hrishikesh46779
Copy link

Hrishikesh46779 commented Dec 17, 2023

Same issue for me. I just changed .net 7 to .net 8 in csproj and this error comes.
image

@Hrishikesh46779
Copy link

I have attached .binlog see #18636 (comment)

@bcaceiro
Copy link

This just continues to happen several times. Still no workaround??

@lampo1024
Copy link

lampo1024 commented Mar 11, 2024

Same problem in .net 8 MAUI Application.

QQ截图20240311112141

@Matt-17
Copy link

Matt-17 commented Mar 18, 2024

I just created a new MAUI app using .net8.0 and I had this issue.

It helped me to edit .csproj file and remove everything targeting ios, maccatalyst and tizen. Don't know which one caused the issue. But it was writing about missing files for Android (like AndroidManifest.xml directly in project folder) - so definitely unrelated things.

Oh I also got this issue when targeting Windows:
The project needs to be deployed before we can debug. Please enable Deploy in the Configuration Manager.

It was enabled. Removing those targets also helped this problem.

@jfversluis
Copy link
Member

We think that this might be solved by #21838. Please try the nightly feed or wait for a next release where this change is included. If this turns out not to be the case, please feel free to open a new issue about this and refer to this one, thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/needs-attention Issue has more information and needs another look
Projects
None yet
Development

No branches or pull requests

10 participants