[dotnet-linker] Implement Application.ProductName instead of Application.GetProductName in dotnet-linker work better with the shared code.

This commit is contained in:
Rolf Bjarne Kvinge 2020-08-14 17:09:40 +02:00
Родитель 3046ebc1d6
Коммит 29fd334456
1 изменённых файлов: 14 добавлений и 11 удалений

Просмотреть файл

@ -19,17 +19,20 @@ namespace Xamarin.Bundler {
this.Configuration = configuration; this.Configuration = configuration;
} }
public string GetProductName () public string ProductName {
{ get {
switch (Platform) { switch (Platform) {
case ApplePlatform.iOS: case ApplePlatform.iOS:
case ApplePlatform.TVOS: return "Microsoft.iOS";
case ApplePlatform.WatchOS: case ApplePlatform.TVOS:
return "Xamarin.iOS"; return "Microsoft.tvOS";
case ApplePlatform.MacOSX: case ApplePlatform.WatchOS:
return "Xamarin.Mac"; return "Microsoft.watchOS";
default: case ApplePlatform.MacOSX:
throw ErrorHelper.CreateError (177, Errors.MX0177 /* "Unknown platform: {0}. This usually indicates a bug; please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new with a test case." */, Platform); return "Microsoft.macOS";
default:
throw ErrorHelper.CreateError (177, Errors.MX0177 /* "Unknown platform: {0}. This usually indicates a bug; please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new with a test case." */, Platform);
}
} }
} }