Skip to content

Commit a3958a6

Browse files
committed
Upgrade to support .net7.0 and remove netcoreapp3.1
1 parent f7dd2fb commit a3958a6

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$(MSBuildThisFileDirectory)..\LibZipSharp.props" />
44

55
<PropertyGroup>
6-
<TargetFrameworks>net471;netcoreapp3.1</TargetFrameworks>
6+
<TargetFrameworks>net471;net7.0</TargetFrameworks>
77

88
<IsPackable>false</IsPackable>
99
<LibZipSharpBundleAllNativeLibraries>true</LibZipSharpBundleAllNativeLibraries>

LibZipSharp/libZipSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<AssemblyName>libZipSharp</AssemblyName>
66
<AssemblyTitle>libZipSharp</AssemblyTitle>
7-
<TargetFrameworks>netcoreapp3.1;netstandard2.0;net45</TargetFrameworks>
7+
<TargetFrameworks>net7.0;netstandard2.0;net45</TargetFrameworks>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1010
<RootNamespace>Xamarin.Tools.Zip</RootNamespace>

azure-pipelines.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)