@@ -94,7 +94,7 @@ stages:
9494 - buildlinux
9595 - buildWindows
9696pool :
97- vmImage : macOS-10.14
97+ vmImage : macOS-latest
9898steps :
9999 - bash : |
100100 brew tap xamarin/xamarin-android-windeps
@@ -194,6 +194,12 @@ stages:
194194inputs :
195195artifactName : NuGet
196196downloadPath : $(Build.SourcesDirectory)
197+ - task : MSBuild@1
198+ displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
199+ inputs :
200+ solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
201+ configuration : Release
202+ msbuildArguments : /restore /p:ReferenceNuget=True /v:diag
197203 - task : MSBuild@1
198204displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
199205inputs :
@@ -204,12 +210,11 @@ stages:
204210displayName : " Run Tests under .net Core"
205211inputs :
206212command : test
207- projects : ' LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
208- arguments : ' --configuration Release --framework netcoreapp3.1 --no-build'
213+ arguments : ' LibZipSharp.UnitTest/bin/Release/netcoreapp3.1/LibZipSharp.UnitTest.dll'
209214 - job : testmacos
210215displayName : ' Test MacOS'
211216pool :
212- vmImage : macOS-10.14
217+ vmImage : macOS-latest
213218steps :
214219 - template : yaml-templates/use-dot-net.yaml
215220parameters :
@@ -219,16 +224,27 @@ stages:
219224inputs :
220225artifactName : NuGet
221226downloadPath : $(Build.SourcesDirectory)
227+ - task : MSBuild@1
228+ displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
229+ inputs :
230+ solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
231+ configuration : Release
232+ msbuildArguments : /restore /p:ReferenceNuget=True /v:diag
222233 - task : MSBuild@1
223234displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
224235inputs :
225236solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
226237configuration : Release
227238msbuildArguments : /restore /t:RunNunitTests /p:ReferenceNuget=True /v:diag
239+ - task : DotNetCoreCLI@2
240+ displayName : " Run Tests under .net Core"
241+ inputs :
242+ command : test
243+ arguments : ' LibZipSharp.UnitTest/bin/Release/netcoreapp3.1/LibZipSharp.UnitTest.dll'
228244 - job : testwindows
229245displayName : ' Test Windows'
230246pool :
231- vmImage : windows-2019
247+ vmImage : windows-latest
232248steps :
233249 - template : yaml-templates/use-dot-net.yaml
234250parameters :
@@ -240,6 +256,12 @@ stages:
240256downloadPath : $(Build.SourcesDirectory)
241257 - task : MSBuild@1
242258displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
259+ inputs :
260+ solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
261+ configuration : Release
262+ msbuildArguments : /restore /p:ReferenceNuget=True /v:diag
263+ - task : MSBuild@1
264+ displayName : ' Run Tests LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
243265inputs :
244266solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
245267configuration : Release
@@ -248,8 +270,8 @@ stages:
248270displayName : " Run Tests under .net Core"
249271inputs :
250272command : test
251- projects : ' LibZipSharp.UnitTest/ LibZipSharp.UnitTest.csproj '
252- arguments : ' --configuration Release --framework netcoreapp3.1 --no-build '
273+ arguments : ' LibZipSharp.UnitTest\bin\Release\netcoreapp3.1\ LibZipSharp.UnitTest.dll
274+ '
253275 - stage : Publish
254276dependsOn : Test
255277condition : eq(variables['System.TeamProject'], 'devdiv') # only sign the packages when running on Windows, and using the private server which has the certificates
0 commit comments