C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets(198,5): Error : Your project does not reference "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in t
Sk
61
Reputation points
When I am running the my Xamarin. Android project using Azure pipeline I am unable to build solution due to above error.
Please see attached Release configuration of my project
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>None</DebugType>
<DebugSymbols>false</DebugSymbols>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<DefineConstants>RELEASE;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
<AotAssemblies>false</AotAssemblies>
<EnableLLVM>false</EnableLLVM>
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
<BundleAssemblies>false</BundleAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworkVersion>v13.0</TargetFrameworkVersion>
<TargetFrameworks>MonoAndroid,Version=v8.1</TargetFrameworks>
<MandroidI18n />
</PropertyGroup>
<TargetFrameworks>MonoAndroid,Version=v8.1</TargetFrameworks> I have added newly in order to resolve above issue.But didn't worked
Anyone please help me
Sign in to answer