@@ -157,12 +157,11 @@ steps:
157157 pwd
158158 chmod -R a+r .
159159 ../../../dotnet restore Microsoft.NetConf2021.Maui.csproj
160- ../../../dotnet publish Microsoft.NetConf2021.Maui.csproj -bl:MauiAndroid .binlog -r android-arm64 --self-contained --no-restore -f net6.0-android -c Release
160+ ../../../dotnet publish Microsoft.NetConf2021.Maui.csproj -bl:MauiPodcastAndroid .binlog -r android-arm64 --self-contained --no-restore -f net6.0-android -c Release
161161 mv ./bin/Release/net6.0-android/android-arm64/com.Microsoft.NetConf2021.Maui-Signed.apk $(Build.SourcesDirectory)/MauiTesting/MauiAndroidPodcast.apk
162- displayName: Build podcast app for MAUI
162+ displayName: Build MAUI Podcast Android
163163 workingDirectory: $(Build.SourcesDirectory)/dotnet-podcasts/src/Mobile
164164
165-
166165 # This step pulls the product version from the used Microsoft.Maui.dll file properties and saves it for upload with the maui test counter.
167166 # We pull from this file as we did not find another place to reliably get the version information pre or post build.
168167 - powershell : |
@@ -186,6 +185,20 @@ steps:
186185 displayName: Build MAUI iOS
187186 workingDirectory: $(Build.SourcesDirectory)/MauiTesting
188187
188+ - script : |
189+ chmod -R a+r .
190+ # remove net6.0-maccatalyst to work around https://github.com/dotnet/sdk/issues/21877
191+ cp Microsoft.NetConf2021.Maui.csproj Microsoft.NetConf2021.Maui.csproj.bak
192+ sed -i'' -e 's/net6.0-ios;net6.0-maccatalyst/net6.0-ios/g' Microsoft.NetConf2021.Maui.csproj
193+
194+ ../../../dotnet build ../Web/Components/Podcast.Components.Maui.csproj
195+ ../../../dotnet publish Microsoft.NetConf2021.Maui.csproj -bl:MauiiOSPodcast.binlog -f net6.0-ios --self-contained -r ios-arm64 -c Release /p:_RequireCodeSigning=false
196+ mv ./bin/Release/net6.0-ios/ios-arm64/publish/Microsoft.NetConf2021.Maui.ipa ./MauiiOSPodcast.ipa
197+
198+ cp Microsoft.NetConf2021.Maui.csproj.bak Microsoft.NetConf2021.Maui.csproj
199+ displayName: Build MAUI Podcast iOS
200+ workingDirectory: $(Build.SourcesDirectory)/dotnet-podcasts/src/Mobile
201+
189202 - script : |
190203 chmod -R a+r .
191204 ../dotnet publish -bl:MauiMacCatalyst.binlog -f net6.0-maccatalyst -c Release
@@ -214,6 +227,13 @@ steps:
214227 pathtoPublish : $(Build.SourcesDirectory)/MauiTesting/MauiMacCatalyst.binlog
215228 artifactName : ${{ parameters.artifactName }}
216229
230+ - task : PublishBuildArtifacts@1
231+ displayName : ' Publish MauiiOSPodcast binlog'
232+ condition : always()
233+ inputs :
234+ pathtoPublish : $(Build.SourcesDirectory)/dotnet-podcasts/src/Mobile/MauiiOSPodcast.binlog
235+ artifactName : ${{ parameters.artifactName }}
236+
217237 - template : /eng/pipelines/common/upload-artifact-step.yml
218238 parameters :
219239 rootFolder : $(Build.SourcesDirectory)/MauiTesting/MauiAndroidDefault.apk
@@ -234,7 +254,6 @@ steps:
234254 archiveType : tar
235255 tarCompression : gz
236256
237-
238257 - template : /eng/pipelines/common/upload-artifact-step.yml
239258 parameters :
240259 rootFolder : $(Build.SourcesDirectory)/MauiTesting/MauiiOSDefault.ipa
@@ -245,6 +264,16 @@ steps:
245264 archiveType : tar
246265 tarCompression : gz
247266
267+ - template : /eng/pipelines/common/upload-artifact-step.yml
268+ parameters :
269+ rootFolder : $(Build.SourcesDirectory)/dotnet-podcasts/src/Mobile/MauiiOSPodcast.ipa
270+ includeRootFolder : true
271+ displayName : Maui iOS Podcast IPA
272+ artifactName : MauiiOSPodcastIPA
273+ archiveExtension : ' .tar.gz'
274+ archiveType : tar
275+ tarCompression : gz
276+
248277 - template : /eng/pipelines/common/upload-artifact-step.yml
249278 parameters :
250279 rootFolder : $(Build.SourcesDirectory)/MauiTesting/MauiMacCatalystDefault.app
0 commit comments