Mac Visual Studio 2022 Asset.xcassets does not open locally, but opens in Xcode and does not sync changes

Pascale Beaulac 1 Reputation point
2022-06-07T23:13:11.34+00:00

Hello. I have this problem, started using VS 2022 and I am making an app, just finished the initial Demo for a mobile App iOS/Android using Forms.
I need to set custom appIcons, and all the tutorials I see when they open the Asset catalog it opens in VS, but when I try to do so it only want to open in Xcode. Saying that when I am done to just switch back to VS and it will sync the changes. Ok fine, I have made the changes in Xcode, changed the icons in the appicon iconset and switch back to VS. It does report that the icons have changed. But 1 big problem, it does not update the .png names in the project file. this as 2 effects, one the app load on the iPhone with not icon or build fails saying it is missing the old icons.

This is be cause the .csproj file never gets updated with the new icon name from the content.js file located in the Asset catalog.
Also because of this if I add colors or other images to the asset catalog the images don't get imported as none of the change I am doing are really getting imported back in VS 2022.

What I did was to manually set the app icon folder with the correct json file and images then edited the .csproj file so that it reflexes the new custom icon names.

This is seriously bad and killing my workflow for adding images and this take much longer to do then if it did sync correctly in the first place.

Is it normal that it is not opening locally in Visual Studio 2022 mac and if yes why does it not sync the icon changes??

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rob Caplan - MSFT 5,427 Reputation points Microsoft Employee
    2022-06-10T00:26:09.337+00:00

    There is a known issues in VS for Mac 2022 and is currently under investigation. You can follow it on the Visual Studio Developer Community at error synchronizing changes from Xcode. The VS Developer Community is the official site for VS bug tracking.

    What I did was to manually set the app icon folder with the correct json file and images then edited the .csproj file so that it reflexes the new custom icon names.

    This is what I would recommend until a fix is available.

    As noted in the Q&A FAQ How to write a quality question, bug reports are off-topic on Q&A and should be posted in the product-specific bug site. For Visual Studio and Visual Studio for Mac, the VS Developer Community's feedback items tie directly into the bug database used by the Visual Studio development team. See Report a problem or suggestions for Visual Studio for Mac

    0 comments No comments