#549 - Apply the .NET Core Restore workaround

See https://developercommunity.visualstudio.com/solutions/1076778/view.html
pull/553/head
Oleg Nenashev 2020-06-18 10:39:50 +02:00
parent 1b8cbccd8a
commit 58d45e32eb
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ jobs:
Release:
BuildConfiguration: Release
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/*.csproj'
includeNuGetOrg: true
displayName: 'Restoring code using dotnet restore'
- script: |
dotnet build -c $(BuildConfiguration) src\winsw.sln -p:Version=$(BuildVersion)
dotnet publish -c $(BuildConfiguration) -f netcoreapp3.1 src\Core\ServiceWrapper\winsw.csproj -p:Version=$(BuildVersion)