0

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!

1
  • Please provide more information about your environment (build agent, os, self-hosted/cloud-provided) and details of your pipeline so that others can answer your question Commented Oct 30 at 15:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.