From 18df367c74b5b3010e6b03fa4c710cbf46e859a6 Mon Sep 17 00:00:00 2001 From: Sina Soltani <10329804+Sina-Soltani@users.noreply.github.com> Date: Mon, 19 Oct 2020 17:23:23 +0200 Subject: [PATCH] Update pipeline to use nuget instead of dotnetcore. (#122) --- Parbad.sln | 3 +-- azure-pipelines.yml | 10 ++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Parbad.sln b/Parbad.sln index 7905891c..55c62c62 100644 --- a/Parbad.sln +++ b/Parbad.sln @@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .gitattributes = .gitattributes .gitignore = .gitignore - appveyor.yml = appveyor.yml azure-pipelines.yml = azure-pipelines.yml images\How-it-works.png = images\How-it-works.png LICENSE.txt = LICENSE.txt @@ -49,7 +48,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Parbad.Gateway.IdPay", "src EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Parbad.Gateway.Sepehr", "src\Parbad.Gateway\Sepehr\src\Parbad.Gateway.Sepehr.csproj", "{3DE7D493-E7DF-4FEA-B589-2A38C19BC6E5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Parbad.Gateway.YekPay", "src\Parbad.Gateway\YekPay\src\Parbad.Gateway.YekPay.csproj", "{9AAFC4B2-678C-4C80-9F1E-8D97C029E598}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Parbad.Gateway.YekPay", "src\Parbad.Gateway\YekPay\src\Parbad.Gateway.YekPay.csproj", "{9AAFC4B2-678C-4C80-9F1E-8D97C029E598}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2c3ec318..40cb145d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,11 +13,17 @@ variables: projects: 'src/**/*.csproj' steps: -- task: DotNetCoreCLI@2 +- task: NuGetToolInstaller@1 + displayName: 'Use Nuget' + inputs: + versionSpec: + checkLatest: true +- task: NuGetCommand@2 displayName: 'restoring' inputs: command: 'restore' - projects: '**/*.csproj' + restoreSolution: '**/*.sln' + feedsToUse: 'select' - task: DotNetCoreCLI@2 displayName: 'building' inputs: