maui icon indicating copy to clipboard operation
maui copied to clipboard

I think this is a duplicate of #5652 and I think half the time when files are moved in VS the IDE decides it does not want to track the files and adds an explicit remove for everything.

Open robreno opened this issue 2 years ago • 2 comments

    I think this is a duplicate of #5652 and I think half the time when files are moved in VS the IDE decides it does not want to track the files and adds an explicit remove for everything.

You can see things like this in the repo csproj:

	<ItemGroup>
	  <MauiImage Remove="Resources\Images\new256icon.png" />
	</ItemGroup>

Also, if you look at the android manifest you can see that it explicitly sets the icon to be android:icon="@mipmap/appicon": https://github.com/nssidhu/AppIconAndSplashScreenSample/blob/master/AppIconAndSplashScreenSample/Platforms/Android/AndroidManifest.xml#L4

As of GA, the MauiIcon was just to generate the icons in the correct format and then the correct icon would be selected by the developer in the manifest. This was because you can actually have multiple icons in an all and you can change them at runtime.

However, I do believe not setting the icon to at least the first one (and most likely the only one) is a much better experience. If you want a specific one, you can totally go edit the manifest with the correct one and then add the rest as the activity alias.

Improvements are happening here: https://github.com/dotnet/maui/pull/7968

Closing this as a result of the duplicate and the issue will be tracked there.

Originally posted by @mattleibow in https://github.com/dotnet/maui/issues/4340#issuecomment-1153207618

robreno avatar Nov 24 '22 02:11 robreno

I tried to create a new appicon and change it per the docs and was actually able to get it to change the appicon. But the image was poor, and I didn't know how to create a appiconfg.svg file and it placed the ".NET" text into the icon image. So, I tried to change back and now I am getting the APT2067 failed processing manifest. I deleted the bin and obj folders, restarted VS2022, and have searched for a fix, but no luck. I have no idea now how to fix this and would appreciate all the help I can get.

I will try to setup a repo project soon and see if I can produce the same error again in a way that can be easily repoed and shared.

APT2260 Severity Code Description Project File Line Suppression State Error APT2260 resource mipmap/appicon (aka om.companyname.lexparser: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. LexParser.Maui G:\Archive\Projects\FsLexYacc.net6.0-master\FsLexYacc.net6.0-master\test\LexParser.Maui\Platforms\Android\AndroidManifest.xml 1

robreno avatar Nov 24 '22 02:11 robreno

I created a dummy project to compare to my broken project. The error seems to have to do with the mipmap/appicon not found. When I compare the obj_Debug_net6.0-android_resizetizer_r and obj_Debug_net6.0-android_resizetizer_flat folders I see a missing folder in the broken project.

I suspect there is a setting or flag or something that is not generating these folders. The first image of the broken project the mipmap/appicon entries a missing while in the dummy project they are there. This is why the project won't compile it seems.

I have two copies of the project that is broken. One has version control and works. I move non-breaking changes into it and commit to Git. The broken project is a mirror of this project but is not under Git. I will use the working project to compare and see if I can find the cause.

Broken_Project_obj_Debug_net6 0-android_resizetizer_r

Working_Dummy_Project_obj_Debug_net6 0-android_resizetizer_r

Error

robreno avatar Nov 24 '22 03:11 robreno

Hi @robreno. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

ghost avatar Nov 29 '22 19:11 ghost

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

ghost avatar Dec 05 '22 00:12 ghost