Skip to content

Commit fcaec85

Browse files
committed
build: workaround Azure Pipelines build bug
For some reason our Azure Pipelines builds are failing (occasionally) to restore packages _unless_ we explicitly run a `dotnet restore` before our `dotnet build`. The Azure Pipelines team are still not sure why this is failing, or why it only happens one some of the hosted agents and not others (despite compiling the same commit)!
1 parent 9d17ca2 commit fcaec85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.azure-pipelines/templates/windows/compile.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ steps:
1111
packageType: sdk
1212
version: 3.1.x
1313

14+
- task: DotNetCoreCLI@2
15+
displayName: Restore packages
16+
inputs:
17+
command: restore
18+
projects: 'Git-Credential-Manager.sln'
19+
arguments: '--configuration=Windows$(configuration)'
20+
1421
- task: DotNetCoreCLI@2
1522
displayName: Compile common code and Windows Helpers
1623
inputs:

0 commit comments

Comments
 (0)