Skip to content

Commit

Permalink
[Essentials] Make PublisherName public on NET8 (#16454)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho authored Jul 31, 2023
1 parent 2095668 commit 1964938
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Essentials/src/AppInfo/AppInfo.uwp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public AppInfoImplementation()
? Package.Current.Id.Name
: _launchingAssembly.GetAppInfoValue("PackageName") ?? _launchingAssembly.GetCustomAttribute<AssemblyTitleAttribute>()?.Title ?? string.Empty;

// TODO: NET8 add this as a actual data point and public property if it is valid on platforms
internal static string PublisherName => AppInfoUtils.IsPackagedApp
public static string PublisherName => AppInfoUtils.IsPackagedApp
? Package.Current.PublisherDisplayName
: _launchingAssembly.GetAppInfoValue("PublisherName") ?? _launchingAssembly.GetCustomAttribute<AssemblyCompanyAttribute>()?.Company ?? string.Empty;

Expand Down

0 comments on commit 1964938

Please sign in to comment.