xamarin / AndroidSupportComponents

Xamarin bindings for Android Support libraries - For AndroidX see https://github.com/xamarin/AndroidX
MIT License
146 stars 56 forks source link

[support-vector-drawable] port MSBuild tasks to netstandard2.0 #239

Closed jonathanpeppers closed 4 years ago

jonathanpeppers commented 4 years ago

Support Libraries Version (eg: 23.3.0):

AndroidX

Does this change any of the generated binding API's?

No

Describe your contribution

This fixes a failure running under .NET 5:

Xamarin.AndroidX.VectorDrawable.targets(22,5): error MSB4062:
The "Xamarin.AndroidX.VectorDrawable.BuildTasks.VectorDrawableCheckBuildToolsVersionTask" task could not be loaded from the assembly
Xamarin.AndroidX.VectorDrawable.BuildTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Porting to netstandard2.0 and using the NuGet packages for MSBuild should solve this issue.

jonathanpeppers commented 4 years ago

I need to do this on https://github.com/xamarin/AndroidX