I am trying to create an Azure Pipeline to build the APK for .net MAUI project.
Pipeline on run failing with below error.
*
C:\hostedtoolcache\windows\dotnet\sdk\8.0.414\Sdks\Microsoft.NET.Sdk\targets \Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\a\1\s\MyApp\MyApp\obj
project.assets.json' doesn't have a target for 'net8.0-'. Ensure that restore has run and that you have included 'net8.0-' in the TargetFrameworks for your project. [D:\a\1\s\MyApp\MyApp \MyApp.csproj::TargetFramework=net8.0-***]
In my .csproj
<PropertyGroup>
<TargetFrameworks>net8.0-android34.0;net8.0</TargetFrameworks>
<OutputType Condition="'$(TargetFramework)' != 'net8.0'">Exe</OutputType>.....</PropertyGroup>
NOTE: installed dotnet workload and sdk (.Net 8) in pipeline. I am just targeting Android project.
Can someone help me understand the error. Thanks in Advance!