commit b94e128bdf773e185b87fce985d213c9d82ed742 parent 34c25ead5010fdea7fb8d245e7b4ff4aa1e8361b Author: JohnMcPMS <johnmcp@microsoft.com> Date: Wed, 2 Jun 2021 20:27:26 -0700 Fix nuget restore due to ADO build agents moving to VS 16.10 (#1082) * Use old behavior * Pivot to directly restoring the projects that are left out of solution restore Diffstat:
| M | azure-pipelines.yml | | | 14 | +++++++++++++- |
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml @@ -50,10 +50,22 @@ jobs: # Restores all projects, including native (vcxproj) projects - task: NuGetCommand@2 - displayName: Restore Packages + displayName: Restore Solution inputs: restoreSolution: '$(solution)' + # Restore these UAP packages as https://github.com/NuGet/Home/issues/7796 leads to all UAP packages being skipped for restore. + # Even though they don't need any actual restore action, they need the project.assets.json file to be created and a direct restore does that. + - task: NuGetCommand@2 + displayName: Restore AppInstallerCLIPackage + inputs: + restoreSolution: 'src\AppInstallerCLIPackage\AppInstallerCLIPackage.wapproj' + + - task: NuGetCommand@2 + displayName: Restore AppInstallerTestMsixInstaller + inputs: + restoreSolution: 'src\AppInstallerTestMsixInstaller\AppInstallerTestMsixInstaller.wapproj' + # Restores only .NET core projects, but is still necessary, as without this the IndexCreationTool and LocalhostWebServer projects fail to build - task: DotNetCoreCLI@2 displayName: DotNet Restore