dotnet / dotnet/android

`MicrosoftIntune` test fails on .NET 9

Open
#8,548 16 comments 5 reactions 1 assignee Claimed by @jonathanpeppers View on GitHub
Area: App+Library Build bug
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 21h
Merged PRs (30d)
257

Description

### Android application type

.NET Android (net7.0-android, net8.0-android, etc.)

### Affected platform version

.NET 9

### Description

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=8749461&view=ms.vss-test-web.build-test-results-tab&runId=89641486&resultId=100000&paneView=attachments
Context: https://github.com/xamarin/xamarin-android/pull/8366

The `MicrosoftIntune` test fails in both Debug and Release mode with:
```
/Users/runner/.nuget/packages/microsoft.intune.maui.essentials.android/10.0.0-beta2/build/netstandard2.0/Microsoft.Intune.Maui.Essentials.android.targets(208,9): /Users/runner/work/1/s/bin/Release/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.android-x64/9.0.0-alpha.1.23577.7/runtimes/android-x64/native/libSystem.Security.Cryptography.Native.Android.jar doesn't contain /Users/runner/.nuget/packages/ and the mamified library won't be placed in the correct intune directory. This is not expected. [/Users/runner/work/1/a/TestRelease/11-30_21.20.10/temp/MicrosoftIntuneFalse/UnnamedProject.csproj]
```

### Steps to Reproduce

Run the Intune test on .NET 9.

### Did you find any workaround?

Will ignore this test for now.

### Relevant log output

[Intune.zip](https://github.com/xamarin/xamarin-android/files/13518021/Intune.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.