Xamarin.Android.Bindings.targets was not found

Faizan Haider 0 Reputation points

when running the following command on a xamarin.android class library project

dotnet pack --configuration Release

I am facing following issue

MSBuild version 17.3.0+92e077650 for .NET /Users/faizan/Projects/Upwork/NearpayXamarin/nearpay-xamarin-android-sdk/nearpay-xamarin-android-sdk.csproj(130,3): error MSB4019: The imported project "/usr/local/share/dotnet/x64/sdk/6.0.400/Xamarin/Android/Xamarin.Android.Bindings.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/x64/sdk/6.0.400//Xamarin/Android/Xamarin.Android.Bindings.targets" is correct, and that the file exists on disk.

Help required!

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
{count} votes