Closed MikeP0911 closed 1 year ago
Hi @MikeP0911, can you upload verbose binlogs from the failed build?
@Archit-Pikle Please find the Verbose Log file (detailed log) below: VerboseLog-detailed.txt
Also please find the build log: Output-Build.txt
Thanks in advance
@MikeP0911 , in the verbose logs I see that the MamifyFiles task is sending C:\TFS_Final\License
as an argument to the invocation call and is unable to find it. Can you verify that the files exists at the correct path?
Arguments: --input C:\TFS_Final\License Kanri\ZipExtractMaui\ZipExtractMaui\obj\Debug\net7.0-android33.0\intune\build-tool\remap\input.txt --output C:\TFS_Final\License Kanri\ZipExtractMaui\ZipExtractMaui\obj\Debug\net7.0-android33.0\intune\build-tool\remap\output.txt --excludeClasses mono.MonoRuntimeProvider;androidx.startup.InitializationProvider --classpath "C:\Program Files (x86)\Android\android-sdk\platforms\android-33\android.jar;C:\Users\testuser\.nuget\packages\microsoft.intune.maui.essentials.android\9.5.2-beta2\build\netstandard2.0\Resources\classes.jar" --report C:\TFS_Final\License Kanri\ZipExtractMaui\ZipExtractMaui\obj\Debug\net7.0-android33.0\intune\build-tool\remap\report --xamarin
2> File: C:\TFS_Final\License not found.
@Archit-Pikle Thank you for the response. The cause of the bug is a space in the folder name. If there is any space in the file path, the SDK fails at MAMification. It was not an issue in Xamarin Android SDK.
Now everything builds successfully.
Intune Android App SDK for .NET MAUI Issue
Summary
Converted the Xamarin App to a MAUI app. Also included the Microsoft.Intune.Maui.Essentials.android package instead of the Intune Android Xamarin bindings. When building the project, it throws an error stating "Microsoft.Intune.Maui.Essentials.android".
Details
the error is thrown in the file named Microsoft.Intune.Maui.Essentials.android. targets on the line number 287
Microsoft.Intune.Maui.Essentials.android
Version: 9.5.2Logs
2>C:\NugetPackages\microsoft.intune.maui.essentials.android\9.5.2-beta2\build\netstandard2.0\Microsoft.Intune.Maui.Essentials.android.targets(287,9): error : The MAM transofrmation failed unexpectedly, please review the verbose logs for more details. 2>Done building project "ZipExtractMaui.csproj" -- FAILED.
Questions to Ask Before Submission
Microsoft.Intune.Maui.Essentials.android
package?bin
andobj
output folders? YESMicrosoft.Intune.Maui.Essentials.android
NuGet package version? YES