Skip to content

[XVS][VSM][MAUI]There were 3 errors when building and canceling solution several times #18636

@Redth

Description

@Redth

**Affected Build:**17.5.0 Preview 4.0 [33319.269.d17.5]
Affect Target framework: net7.0-android/iOS/windows/maccatalyst ; net6.0-android/iOS/windows/maccatalyst

Version info:

  • Microsoft.net.sdk.android : "33.0.26"
  • Microsoft.net.sdk.iOS : "16.2.1007"
  • Microsoft.net.sdk.Maui: "7.0.59"

Steps to reproduce:

  1. Create Maui project.
  2. Set Target Framework as 'net7.0-android' and select android device.
  3. Build the solution, cancel the project being built, build again, cancel the project being built for several times.
  4. Build the solution.

Actual Result:
Build failed with 3 errors:

Error APT2260 resource mipmap/appicon (aka com.companyname.mauiapp17:mipmap/appicon) not found.
Error APT2260 resource mipmap/appicon_round (akacom.companyname.mauiapp17:mipmap/appicon_round) not found.
Error APT2067 failed processing manifest.

image


'appicon' is generated by MAUI at build time:

https://github.com/dotnet/maui/blob/main/src/SingleProject/Resizetizer/src/nuget/buildTransitive/Microsoft.Maui.Resizetizer.After.targets Opens in new window or tab

I would suspect that potentially the MSBuild task has an incremental build bug when canceled. Changing area path for now.


looking at the new logs, the target "ResizetizeImages" is being skipped, and it appears that the expected app icons do not exist. But the stamp file is still in place.

I've not seen any point in the logs provided where the appicon files are deleted yet. So I'm not sure what is deleting them.

Metadata

Metadata

Assignees

Labels

area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizers/needs-attentionIssue has more information and needs another look

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions