Skip to content

Commit 3cce48b

Browse files
committed
MicrosoftExtensionsHttp works across all 3 runtimes
1 parent 1a644d9 commit 3cce48b

File tree

1 file changed

+8
-1
lines changed
  • src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests

1 file changed

+8
-1
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)