mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 18:43:54 -06:00
18 lines
502 B
PowerShell
18 lines
502 B
PowerShell
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$true, ValueFromPipeline=$true,
|
|
HelpMessage="Path to the .appxrecipe to parse")]
|
|
[string]
|
|
$Path
|
|
)
|
|
|
|
$Recipe = [xml](Get-Content $Path)
|
|
$ResolvedSDKReferences = $Recipe.Project.ItemGroup.ResolvedSDKReference
|
|
|
|
$ResolvedSDKReferences |
|
|
Where-Object Architecture -eq $Recipe.Project.PropertyGroup.PackageArchitecture |
|
|
ForEach-Object {
|
|
$l = [Uri]::UnescapeDataString($_.AppxLocation)
|
|
Get-Item $l
|
|
}
|