@@ -13,7 +13,7 @@ $FullBuildOutput = "$($BuildOutputDir)\$($Configuration)\$($Platform)"
1313$FullPublishDir = " $ ( $PublishDir ) \$ ( $Configuration ) \$ ( $Platform ) "
1414
1515if (! (Test-Path $FullPublishDir )) { mkdir $FullPublishDir }
16-
16+ if ( ! ( Test-Path $NugetDir )) { mkdir $NugetDir }
1717
1818function PublishFile {
1919 Param ($source , $destinationDir , [switch ]$IfExists = $false )
@@ -35,93 +35,9 @@ function PublishFile {
3535
3636PublishFile $OverrideDir \DynamicDependency- Override.json $FullPublishDir \
3737
38- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.ProjectReunion.dll $FullPublishDir \Microsoft.ProjectReunion\
39- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.ProjectReunion.lib $FullPublishDir \Microsoft.ProjectReunion\
40- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.Windows.AppLifecycle.winmd $FullPublishDir \Microsoft.ProjectReunion\
41- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.Windows.ApplicationModel.DynamicDependency.winmd $FullPublishDir \Microsoft.ProjectReunion\
42- PublishFile $FullBuildOutput \ProjectReunion_DLL\MsixDynamicDependency.h $FullPublishDir \Microsoft.ProjectReunion\
43- PublishFile $FullBuildOutput \ProjectReunion_DLL\wil_msixdynamicdependency.h $FullPublishDir \Microsoft.ProjectReunion\
44- #
45- PublishFile $FullBuildOutput \DynamicDependency.DataStore\DynamicDependency.DataStore.exe $FullPublishDir \DynamicDependency.DataStore\
46- PublishFile $FullBuildOutput \DynamicDependency.DataStore.ProxyStub\DynamicDependency.DataStore.ProxyStub.dll $FullPublishDir \DynamicDependency.DataStore\
47- #
48- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager\DynamicDependencyLifetimeManager.exe $FullPublishDir \DynamicDependencyLifetimeManager\
49- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager.ProxyStub\DynamicDependencyLifetimeManager.ProxyStub.dll $FullPublishDir \DynamicDependencyLifetimeManager\
50- #
51- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.dll $FullPublishDir \Microsoft.ProjectReunion.Bootstrap\
52- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.lib $FullPublishDir \Microsoft.ProjectReunion.Bootstrap\
53- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\MddBootstrap.h $FullPublishDir \Microsoft.ProjectReunion.Bootstrap\
54-
55- # PublishFile -IfExists $FullBuildOutput\ProjectReunion_DLL\Generic.xaml $FullPublishDir\Microsoft.ProjectReunion\
56- # PublishFile -IfExists $FullBuildOutput\Microsoft.ProjectReunion.Design\Microsoft.ProjectReunion.Design.dll $FullPublishDir\Microsoft.ProjectReunion.Design\
57- # PublishFile -IfExists $BuildOutputDir\$Configuration\AnyCPU\Microsoft.ProjectReunion.FrameworkPackagePRI\Microsoft.ProjectReunion.pri $FullPublishDir\Microsoft.ProjectReunion.FrameworkPackagePRI\
58-
59- # UNDONE - PGO etc. later PR
60- # pgosweep and vcruntime are required to run pgo instrumented test run. They are placed from the
61- # cx test app instead of releasetest.dll since these are architecture specific and the ReleaseTest assembly is AnyCPU.
62- # PublishFile -IfExists $FullBuildOutput\NugetPackageTestAppCX\pgosweep.exe $FullPublishDir\Test\
63- # PublishFile -IfExists $FullBuildOutput\NugetPackageTestAppCX\vcruntime140.dll $FullPublishDir\Test\
64-
6538PublishFile - IfExists $FullBuildOutput \FrameworkPackage\* .* $FullPublishDir \FrameworkPackage
6639
6740if ($PublishAppxFiles )
6841{
6942 $AppxPackagesDir = " $FullPublishDir \AppxPackages"
70-
71- # PublishFile -IfExists $FullBuildOutput\MUXControlsTestApp.TAEF\AppPackages\MUXControlsTestApp_Test\ $AppxPackagesDir
72- # PublishFile -IfExists $FullBuildOutput\IXMPTestApp.TAEF\AppPackages\IXMPTestApp_Test\ $AppxPackagesDir
73- # PublishFile -IfExists $FullBuildOutput\MUXControlsTestAppWPFPackage\AppPackages\MUXControlsTestAppWPFPackage_Test\ $AppxPackagesDir
74-
75- # PublishFile -IfExists $FullBuildOutput\NugetPackageTestApp\AppPackages\NugetPackageTestApp_Test\ $AppxPackagesDir
76- # PublishFile -IfExists $FullBuildOutput\NugetPackageTestAppCX\AppPackages\NugetPackageTestAppCX_Test\ $AppxPackagesDir
77- # PublishFile -IfExists $FullBuildOutput\AppThatUsesMUXIndirectly\AppPackages\AppThatUsesMUXIndirectly_Test\ $AppxPackagesDir
7843}
79-
80- # Publish pdbs:
81- $symbolsOutputDir = " $ ( $FullPublishDir ) \Symbols\"
82- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.ProjectReunion.pdb $symbolsOutputDir
83- PublishFile $FullBuildOutput \DynamicDependency.DataStore\DynamicDependency.DataStore.pdb $symbolsOutputDir
84- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager\DynamicDependencyLifetimeManager.pdb $symbolsOutputDir
85- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.pdb $symbolsOutputDir
86- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.pdb $symbolsOutputDir
87-
88- # Copy files to Full Nuget package
89- #
90- # Includes (*.h)
91- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\MddBootstrap.h $NugetDir \include
92- PublishFile $FullBuildOutput \ProjectReunion_DLL\MsixDynamicDependency.h $NugetDir \include
93- PublishFile $FullBuildOutput \ProjectReunion_DLL\wil_msixdynamicdependency.h $NugetDir \include
94- #
95- # Libraries (*.lib)
96- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.lib $NugetDir \lib\win10- $Platform
97- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.ProjectReunion.lib $NugetDir \lib\win10- $Platform
98- #
99- # MSIX Framework package - DLLs
100- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.ProjectReunion.dll $NugetDir \runtimes\win10- $Platform \native
101- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.ProjectReunion.pdb $NugetDir \runtimes\win10- $Platform \native
102- #
103- # MSIX Main package
104- PublishFile $FullBuildOutput \DynamicDependency.DataStore\DynamicDependency.DataStore.exe $NugetDir \runtimes\win10- $Platform \native
105- PublishFile $FullBuildOutput \DynamicDependency.DataStore\DynamicDependency.DataStore.pdb $NugetDir \runtimes\win10- $Platform \native
106- PublishFile $FullBuildOutput \DynamicDependency.DataStore.ProxyStub\DynamicDependency.DataStore.ProxyStub.dll $NugetDir \runtimes\win10- $Platform \native
107- PublishFile $FullBuildOutput \DynamicDependency.DataStore.ProxyStub\DynamicDependency.DataStore.ProxyStub.pdb $NugetDir \runtimes\win10- $Platform \native
108- #
109- # MSIX DDLM package
110- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager\DynamicDependencyLifetimeManager.exe $NugetDir \runtimes\win10- $Platform \native
111- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager\DynamicDependencyLifetimeManager.pdb $NugetDir \runtimes\win10- $Platform \native
112- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager.ProxyStub\DynamicDependencyLifetimeManager.ProxyStub.dll $NugetDir \runtimes\win10- $Platform \native
113- PublishFile $FullBuildOutput \DynamicDependencyLifetimeManager.ProxyStub\DynamicDependencyLifetimeManager.ProxyStub.pdb $NugetDir \runtimes\win10- $Platform \native
114- #
115- # WinMD for UWP apps
116- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.Windows.AppLifecycle.winmd $NugetDir \lib\uap10.0
117- #
118- # Native (not managed, no MSIX)
119- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.dll $NugetDir \runtimes\lib\native\$Platform
120- PublishFile $FullBuildOutput \ProjectReunion_BootstrapDLL\Microsoft.ProjectReunion.Bootstrap.pdb $NugetDir \runtimes\lib\native\$Platform
121- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.Windows.AppLifecycle.winmd $NugetDir \lib\native
122- PublishFile $FullBuildOutput \ProjectReunion_DLL\Microsoft.Windows.ApplicationModel.DynamicDependency.winmd $NugetDir \lib\native
123- #
124- # C#/WinRT Projections
125- #
126- # Dynamic Dependency build overrides
127- PublishFile $OverrideDir \DynamicDependency- Override.json $NugetDir \runtimes\win10- $Platform \native
0 commit comments