@@ -134,18 +134,18 @@ stages:
134134 rm $(Build.ArtifactStagingDirectory)/native/libzip-linux-*.7z
135135 rm $(Build.ArtifactStagingDirectory)/native/libzip-windows-*.7z
136136 displayName: 'Find libzip'
137- - task : MSBuild@1
137+ - task : DotNetCoreCLI@2
138138 displayName : ' Build solution libZipSharp.csproj'
139139 inputs :
140- solution : LibZipSharp/libZipSharp.csproj
140+ projects : LibZipSharp/libZipSharp.csproj
141141 configuration : Release
142- msbuildArguments : /restore / v:diag / p:RunningOnCI=true
143- - task : MSBuild@1
142+ arguments : - v:diag - p:RunningOnCI=true
143+ - task : DotNetCoreCLI@2
144144 displayName : NuGet pack libZipSharp
145145 inputs :
146- solution : LibZipSharp/libZipSharp.csproj
146+ projects : LibZipSharp/libZipSharp.csproj
147147 configuration : Release
148- msbuildArguments : / t:Pack
148+ arguments : - t:Pack
149149 - task : CopyFiles@2
150150 displayName : Copy nupkg
151151 inputs :
@@ -185,12 +185,12 @@ stages:
185185 inputs :
186186 artifactName : NuGet
187187 downloadPath : $(Build.SourcesDirectory)
188- - task : MSBuild@1
188+ - task : DotNetCoreCLI@2
189189 displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
190190 inputs :
191- solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
191+ projects : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
192192 configuration : Release
193- msbuildArguments : /restore / p:ReferenceNuget=True / v:diag
193+ arguments : - p:ReferenceNuget=True - v:diag
194194 - task : MSBuild@1
195195 displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
196196 inputs :
@@ -201,7 +201,7 @@ stages:
201201 displayName : " Run Tests under .net Core"
202202 inputs :
203203 command : test
204- arguments : ' LibZipSharp.UnitTest/bin/Release/netcoreapp3.1 /LibZipSharp.UnitTest.dll'
204+ arguments : ' LibZipSharp.UnitTest/bin/Release/net7.0 /LibZipSharp.UnitTest.dll'
205205 - job : testmacos
206206 displayName : ' Test MacOS'
207207 pool :
@@ -215,12 +215,12 @@ stages:
215215 inputs :
216216 artifactName : NuGet
217217 downloadPath : $(Build.SourcesDirectory)
218- - task : MSBuild@1
218+ - task : DotNetCoreCLI@2
219219 displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
220220 inputs :
221- solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
221+ projects : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
222222 configuration : Release
223- msbuildArguments : /restore / p:ReferenceNuget=True / v:diag
223+ arguments : - p:ReferenceNuget=True - v:diag
224224 - task : MSBuild@1
225225 displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
226226 inputs :
@@ -231,7 +231,7 @@ stages:
231231 displayName : " Run Tests under .net Core"
232232 inputs :
233233 command : test
234- arguments : ' LibZipSharp.UnitTest/bin/Release/netcoreapp3.1 /LibZipSharp.UnitTest.dll'
234+ arguments : ' LibZipSharp.UnitTest/bin/Release/net7.0 /LibZipSharp.UnitTest.dll'
235235 - job : testwindows
236236 displayName : ' Test Windows'
237237 pool :
@@ -247,12 +247,12 @@ stages:
247247 inputs :
248248 artifactName : NuGet
249249 downloadPath : $(Build.SourcesDirectory)
250- - task : MSBuild@1
250+ - task : DotNetCoreCLI@2
251251 displayName : ' Build solution LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
252252 inputs :
253- solution : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
253+ projects : LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
254254 configuration : Release
255- msbuildArguments : /restore / p:ReferenceNuget=True / v:diag
255+ arguments : - p:ReferenceNuget=True - v:diag
256256 - task : MSBuild@1
257257 displayName : ' Run Tests LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj'
258258 inputs :
@@ -263,7 +263,7 @@ stages:
263263 displayName : " Run Tests under .net Core"
264264 inputs :
265265 command : test
266- arguments : ' LibZipSharp.UnitTest\bin\Release\netcoreapp3.1 \LibZipSharp.UnitTest.dll'
266+ arguments : ' LibZipSharp.UnitTest\bin\Release\net7.0 \LibZipSharp.UnitTest.dll'
267267
268268 - stage : Publish
269269 dependsOn : Test
0 commit comments