File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1160,14 +1160,21 @@ public void SystemDrawingCommon ([Values] AndroidRuntime runtime)
11601160
11611161 //NOTE: Referencing only Microsoft.Extensions.Http, surfaced a bug in <ResolveAssemblies/>
11621162 [ Test ]
1163- public void MicrosoftExtensionsHttp ( )
1163+ public void MicrosoftExtensionsHttp ( [ Values ] AndroidRuntime runtime )
11641164 {
1165+ bool isRelease = runtime == AndroidRuntime . NativeAOT ;
1166+ if ( IgnoreUnsupportedConfiguration ( runtime , release : isRelease ) ) {
1167+ return ;
1168+ }
1169+
11651170 // The goal is to create a project with only this <PackageReference/>
11661171 var proj = new XamarinAndroidApplicationProject {
1172+ IsRelease = isRelease ,
11671173 PackageReferences = {
11681174 KnownPackages . Microsoft_Extensions_Http ,
11691175 }
11701176 } ;
1177+ proj . SetRuntime ( runtime ) ;
11711178 proj . References . Clear ( ) ;
11721179 proj . Sources . Clear ( ) ;
11731180 // We have to add a custom Target to remove Java.Interop and System.Runtime
You can’t perform that action at this time.
0 commit comments