X-Post from StackOverflow http://stackoverflow.com/questions/42090906/suppress-xamarin-android-manifest-build-warning-xa4211
I would like to suppress Xamarin build warning XA4211 from my build process:
warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '15' is less than $(TargetFrameworkVersion) 'v6.0'. Using API-23 for ACW compilation.
I accept this is a warning, but I do not want to change API levels at this time and I want my build to run with zero warnings.
I tried ignoring it in my csproj file.
I even tried disabling the warning in an (arbitrary) cs file:
#pragma warning disable XA4211
Is there a way to suppress this warning in my build? Is there an option I can enter in "Additional monodroid arguments" in my csproj to hide the warning?
I also tried tools:ignore="OldTargetApi", but it seems that my problem is a Xamarin-Android-specific build warning.