@@ -4,11 +4,11 @@ variables:
44 - name : build_configuration
55 value : Release
66 - name : assemblyVersion
7- value : 3.0 .0
7+ value : 3.1 .0
88 - name : packageVersion
9- value : 3.0 .0
9+ value : 3.1 .0
1010 - name : nugetDevVersion
11- value : 3.0 .1
11+ value : 3.1 .1
1212
1313trigger :
1414 - master
@@ -33,12 +33,6 @@ stages:
3333# ########
3434# BUILD #
3535# ########
36- - task : UseDotNet@2
37- displayName : ' Install .NET 8'
38- inputs :
39- includePreviewVersions : true
40- version : 8.x
41-
4236 - task : PowerShell@2
4337 inputs :
4438 filePath : ' $(Build.SourcesDirectory)/ci/SetVersion.ps1'
@@ -56,19 +50,7 @@ stages:
5650# #######
5751# TEST #
5852# #######
59- - task : UseDotNet@2
60- displayName : ' Install .NET 6 SDK'
61- inputs :
62- packageType : sdk
63- version : 6.x
64-
65- - task : UseDotNet@2
66- displayName : ' Install .NET 7 SDK'
67- inputs :
68- packageType : sdk
69- version : 7.x
70-
71- - script : dotnet test $(Build.SourcesDirectory)\$(solution) -c $(build_configuration) -l trx
53+ - script : dotnet test $(Build.SourcesDirectory)/$(solution) -c $(build_configuration) -l trx
7254 displayName : ' Run Tests'
7355 condition : succeededOrFailed()
7456
@@ -77,6 +59,7 @@ stages:
7759 testRunner : VsTest
7860 testResultsFiles : ' **/*.trx'
7961 testRunTitle : ' Tests'
62+ failTaskOnMissingResultsFile : true
8063 displayName : ' Publish test results'
8164 condition : succeededOrFailed()
8265
@@ -97,22 +80,22 @@ stages:
9780
9881 - task : CmdLine@2
9982 inputs :
100- script : nuget.exe Pack $(Build.SourcesDirectory)\ci\ SourceMapTools.nuspec -OutputDirectory $(Build.SourcesDirectory)\ci
83+ script : nuget.exe Pack $(Build.SourcesDirectory)/ci/ SourceMapTools.nuspec -OutputDirectory $(Build.SourcesDirectory)/.build/nuget
10184 workingDirectory : $(Build.SourcesDirectory)/ci
10285 displayName : Build nuget for Azure Artifacts
10386 condition : and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'))
10487
10588 - task : CmdLine@2
10689 inputs :
107- script : nuget.exe Pack $(Build.SourcesDirectory)\ci\ SourceMapTools.nuspec -OutputDirectory $(Build.SourcesDirectory)\ci -Symbols -SymbolPackageFormat snupkg
90+ script : nuget.exe Pack $(Build.SourcesDirectory)/ci/ SourceMapTools.nuspec -OutputDirectory $(Build.SourcesDirectory)/.build/nuget -Symbols -SymbolPackageFormat snupkg
10891 workingDirectory : $(Build.SourcesDirectory)/ci
10992 displayName : Build nuget for Nuget.org
11093 condition : and(succeeded(), eq(variables['Build.SourceBranchName'], 'release'))
11194
11295 - task : NuGetCommand@2
11396 inputs :
11497 command : ' push'
115- packagesToPush : ' $(Build.SourcesDirectory)/ci /SourceMapTools.*.nupkg'
98+ packagesToPush : ' $(Build.SourcesDirectory)/.build/nuget /SourceMapTools.*.nupkg'
11699 nuGetFeedType : ' internal'
117100 publishVstsFeed : ' d119c8d5-d981-4087-b983-65c3339155a0/8c90a52a-2539-4e08-84e4-05beb440b781'
118101 displayName : Publish to Azure Artifacts feed
@@ -121,7 +104,7 @@ stages:
121104 - task : NuGetCommand@2
122105 inputs :
123106 command : ' push'
124- packagesToPush : ' $(Build.SourcesDirectory)/ci /SourceMapTools.*.nupkg'
107+ packagesToPush : ' $(Build.SourcesDirectory)/.build/nuget /SourceMapTools.*.nupkg'
125108 nuGetFeedType : ' external'
126109 publishFeedCredentials : ' nuget.org'
127110 displayName : Publish to Nuget.org
0 commit comments