File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,19 @@ variables:
1414 prPipeline : $[eq(variables['Build.Reason'], 'PullRequest')]
1515
1616steps :
17- - script : dotnet build --configuration $(buildConfiguration)
18- displayName : ' dotnet build $(buildConfiguration)'
17+ - task : UseDotNet@2
18+ displayName : ' Install .NET Core SDK'
19+ inputs :
20+ version : 5.x
21+ performMultiLevelLookup : true
22+ includePreviewVersions : true # Required
23+
24+ - task : DotNetCoreCLI@2
25+ displayName : Build
26+ inputs :
27+ command : build
28+ projects : ' **/*.csproj'
29+ arguments : ' --configuration $(buildConfiguration)'
1930
2031- task : DotNetCoreCLI@2
2132 displayName : Rodando os testes da aplicação
3243 arguments : ' dotnet sonarscanner begin /k:"$(SONAR_PROJECT_KEY)" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
3344 dotnet build –no-incremental
3445 dotnet dotcover test --dcReportType=HTML
35- dotnet sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"'
46+ dotnet sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"'
You can’t perform that action at this time.
0 commit comments