Skip to content

Commit 306b090

Browse files
committed
use VSBuild
1 parent 021d7cc commit 306b090

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
./testspace config url samples.testspace.com
1010
./testspace -v
1111
displayName: 'Setup'
12-
- script: |
13-
nuget restore money/cs-money.sln
14-
msbuild money/cs-money.csproj /p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml
15-
displayName: 'Build'
12+
- task: VSBuild@1
13+
inputs:
14+
solution: 'money\cs-money.sln'
15+
vsVersion: '10.0' # Optional. Options: latest, 15.0, 14.0, 12.0, 11.0
16+
configuration: $(build.configuration)
17+
restoreNugetPackages: true
18+
msbuildArgs: '/p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml'
1619
- script: |
1720
.\money\packages\OpenCover.4.6.519\tools\OpenCover.Console -target:".\money\packages\NUnit.ConsoleRunner.3.4.1\tools\nunit3-console.exe" -targetargs:"money\bin\Debug\cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user
1821
displayName: 'Test'

0 commit comments

Comments
 (0)