Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix #155 - unable to create packaged application shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
jibedoubleve committed Aug 7, 2021
1 parent 0fbc06b commit 18fcc74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Libraries/Probel.UwpHelpers/Probel.UwpHelpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Windows">
<HintPath>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0\Windows.winmd</HintPath>
<Reference Include="Windows, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.19041.0\Windows.winmd</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/Libraries/Probel.UwpHelpers/UwpAppFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,9 @@ public bool TrySetUwp(string userId, string alias, out Package package)
try
{
var srcDir = Path.GetDirectoryName(alias);

var rr = (from p in new PackageManager().FindPackagesForUser(userId)
where srcDir.StartsWith(p.InstalledLocation.Path)
where srcDir.StartsWith(p.InstalledPath)
select p).ToList();
var r = rr.FirstOrDefault();

Expand Down

0 comments on commit 18fcc74

Please sign in to comment.