diff --git a/build/AzurePipelinesTemplates/WindowsAppSDK-CreateNugetPackage-Job.yml b/build/AzurePipelinesTemplates/WindowsAppSDK-CreateNugetPackage-Job.yml index 91db77e15..cbde742af 100644 --- a/build/AzurePipelinesTemplates/WindowsAppSDK-CreateNugetPackage-Job.yml +++ b/build/AzurePipelinesTemplates/WindowsAppSDK-CreateNugetPackage-Job.yml @@ -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" diff --git a/build/TransformAppxManifest.xslt b/build/TransformAppxManifest.xslt new file mode 100644 index 000000000..d0998a7c8 --- /dev/null +++ b/build/TransformAppxManifest.xslt @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +