User/ericjohnson327/transform fusion manifest (#1169)

* Transform application manifest to sxs manifest to support unpackaged app local activation

* Fixing path strings

* Moving generated fusion manifest to new manifests folder

* Fixing powershell concat error

* Renaming generated fusion manifest

Co-authored-by: Eric Johnson <ejohn@microsoft.com>
This commit is contained in:
Eric Johnson 2021-08-04 11:56:29 -07:00 коммит произвёл GitHub
Родитель f38812ae19
Коммит e21fea23e1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 37 добавлений и 1 удалений

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

@ -47,7 +47,7 @@ jobs:
LICENSE
TargetFolder: '${{ parameters.fullnupkgdir }}'
# Copy the Windows App SDK full package specific target files and AppxManifest into the full package folder
# Copy the Windows App SDK full package specific target files, AppxManifest, and fusion manifests into the full package folder
- task: PowerShell@2
displayName: 'Copy Windows App SDK full package assets'
inputs:
@ -64,6 +64,11 @@ jobs:
Copy-Item -Path "$targetsFilePath\Microsoft.WindowsAppSDK.Bootstrap.targets" -Destination "$fullpackagePath\build\Microsoft.WindowsAppSDK.Bootstrap.targets"
Copy-Item -Path "$targetsFilePath\AppxManifest.xml" -Destination "$fullpackagePath\AppxManifest.xml"
$manifestPath = $fullpackagePath+'\manifests';
New-Item -ItemType Directory -Force -Path $manifestPath;
$xslt = New-Object System.Xml.Xsl.XslCompiledTransform;
$xslt.Load('build\TransformAppxManifest.xslt');
$xslt.Transform($fullpackagePath+'\AppxManifest.xml', $manifestPath+'\Microsoft.WindowsAppSdk.Foundation.manifest');
Copy-Item -Path "$targetsFilePath\Intellisense\Microsoft.Windows.AppLifecycle.xml" -Destination "$fullpackagePath\lib\uap10.0\Microsoft.Windows.AppLifecycle.xml"
Copy-Item -Path "$targetsFilePath\Intellisense\Microsoft.Windows.ApplicationModel.DynamicDependency.xml" -Destination "$fullpackagePath\lib\uap10.0\Microsoft.Windows.ApplicationModel.DynamicDependency.xml"

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

@ -0,0 +1,31 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="ApplicationName" />
<xsl:template match="/">
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<xsl:for-each select="ms:Package/ms:Extensions/ms:Extension">
<file>
<xsl:attribute name="name">
<xsl:value-of select="ms:InProcessServer/ms:Path" />
</xsl:attribute>
<xsl:for-each select="ms:InProcessServer/ms:ActivatableClass">
<activatableClass xmlns="urn:schemas-microsoft-com:winrt.v1">
<xsl:attribute name="name">
<xsl:value-of select="@ActivatableClassId" />
</xsl:attribute>
<xsl:attribute name="threadingModel">
<xsl:value-of select="@ThreadingModel" />
</xsl:attribute>
</activatableClass>
</xsl:for-each>
</file>
</xsl:for-each>
</assembly>
</xsl:template>
</xsl:stylesheet>