Skip to content

More Unpackaged Support#8536

Merged
mattleibow merged 22 commits intonet6.0from
win-unpackaged-appinfo
Jul 16, 2022
Merged

More Unpackaged Support#8536
mattleibow merged 22 commits intonet6.0from
win-unpackaged-appinfo

Conversation

@mattleibow
Copy link
Copy Markdown
Member

@mattleibow mattleibow commented Jul 5, 2022

Description of Change

More work on reaching the goal of all APIs working in unpackaged apps.

This makes the following APIs work:

  • Preferences
  • AppInfo
  • FileSystem

Issues Fixed

Part of the larger #3166
Fixes some of #8552

@mattleibow mattleibow changed the title Win unpackaged appinfo More Unpackaged Support Jul 5, 2022
Comment on lines +717 to +734
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>Microsoft.Maui.ApplicationModel.AppInfo.PackageName</_Parameter1>
<_Parameter2>@(_MauiAppxManifestIdentity)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>Microsoft.Maui.ApplicationModel.AppInfo.PublisherName</_Parameter1>
<_Parameter2>@(_MauiAppxManifestPublisher)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>Microsoft.Maui.ApplicationModel.AppInfo.Name</_Parameter1>
<_Parameter2>@(_MauiAppxManifestDisplayName)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>Microsoft.Maui.ApplicationModel.AppInfo.Version</_Parameter1>
<_Parameter2>@(_MauiAppxManifestVersion)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the various properties to the dll as metadata so we can use them in unpackaged apps which have no manifest and no way of knowing what app it is.

Comment on lines +15 to +16
static string AppSpecificPath =>
Path.Combine(CleanPath(AppInfoImplementation.PublisherName), CleanPath(AppInfo.PackageName));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all honesty, this is not so great because the app ID is a GUID, which means the AppData folder will end up with a bunch of GUIDs. But, that is also what is in the C:\ProgramData\Packages folder and that is where all the MSIX apps put things. So not a machine issue - more a user issue.

@mattleibow
Copy link
Copy Markdown
Member Author

Moved the unnecessary changes to #8748

@mattleibow mattleibow requested a review from Redth July 15, 2022 01:25
@mattleibow mattleibow added this to the 6.0-servicing milestone Jul 15, 2022
@mattleibow mattleibow self-assigned this Jul 15, 2022
@mattleibow mattleibow added platform/windows area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info labels Jul 15, 2022
@mattleibow mattleibow requested a review from PureWeen July 15, 2022 01:26
@mattleibow mattleibow merged commit 8bbb7cb into net6.0 Jul 16, 2022
@mattleibow mattleibow deleted the win-unpackaged-appinfo branch July 16, 2022 22:18
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
@samhouts samhouts added fixed-in-7.0.0-rc.1.6683 fixed-in-6.0.486 Look for this fix in 6.0.486 SR4! labels Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info fixed-in-6.0.486 Look for this fix in 6.0.486 SR4! fixed-in-7.0.0-rc.1.6683 platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants