How can I open and edit Info.plist and Entitlements.plist in Visual Studio for Mac 2022?

Kim Strasser 1,036 Reputation points
2022-10-26T11:50:26.647+00:00

I have created a new iOS project in VS for Mac 2022 but I don't know how to open Info.plist and Entitlements.plist correctly. In VS for Mac 2019, it looked like this when I clicked on Entitlements.plist:
254308-bildschirmfoto-2022-10-26-um-133834.png

But when I click in VS for Mac 2022 on Entitlemenst.plist then Xcode opens and I don't know how to edit the file because it looks completely different:
254354-bildschirmfoto-2022-10-26-um-133245.png

How can I open and edit Info.plist and Entitlements.plist in Visual Studio for Mac 2022?
I use Visual Studio for Mac 2022 17.3.8 (build 5).

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,362 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,176 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,306 Reputation points Microsoft Vendor
    2022-10-27T04:46:33.73+00:00

    Hello @Kim Strasser ,

    You could edit the Entitlements.plist in the GUI page and enable some capabilities before, but Info.plist and Entitlements.plist are currently opened with Xcode by default.

    For Info.plist file, you could open it, click the add button, then select a key you want under the drop-down menu, and enter the value. For more details, you could check the listing of iOS keys from iOS Keys (apple.com) and Information Property List | Apple Developer Documentation.
    For Entitlements.plist file, you could add the corresponding keys and values, please refer to the key-value pairs on Entitlements | Apple Developer Documentation. You could also enable some capabilities in any other project via VS2019 and open the Entitlements.plist file with source code, then copy the source code. After that, you can open the Entitlements.plist file of your iOS project with TextEdit in Finder, and past the source code.

    It's a little inconvenient, you could write feedback and create a feature request for VS, refer to Visual Studio for Mac: Report issues & bugs - Visual Studio for Mac | Microsoft Learn.

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Lex Li (Microsoft) 5,582 Reputation points Microsoft Employee
    2022-10-27T04:53:52.047+00:00
    1. The old editor in VS2019 was removed, because VS2022 almost rewrites all visual elements to be macOS native. Things might fall apart in certain places.
    2. An iOS developer should learn how to use Xcode. There are enough guides from Apple,
      https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html
    3. VS for Mac 17.4 (currently in preview) adds back a Microsoft customized editor as attached, 254555-screenshot-2022-10-27-at-125249-am.png
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.