Xamarin.MacでアプリのBundle Identifierを調べる
2020年3月5日 (木) 05:41時点におけるAdministrator (トーク | 投稿記録)による版 (ページの作成:「Macのアプリで別アプリを起動したり制御したりする場合、 Bundle Identifierを指定する方法が簡潔明瞭である。 == 実装 == NSB…」)
実装
NSBundleをアプリのパス指定で生成し、そこからBundle Identifierを取得する。
var bundle = NSBundle.FromPath("/Applications/Safari.app");
Console.WriteLine(bundle.BundleIdentifier);