Xamarin.MacでアプリのBundle Identifierを調べる
実装
NSBundleをアプリのパス指定で生成し、そこからBundle Identifierを取得する。
var bundle = NSBundle.FromPath("/Applications/Safari.app");
Console.WriteLine(bundle.BundleIdentifier);
NSBundleをアプリのパス指定で生成し、そこからBundle Identifierを取得する。
var bundle = NSBundle.FromPath("/Applications/Safari.app");
Console.WriteLine(bundle.BundleIdentifier);