Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Suppress Xamarin Android manifest build warning XA4211

$
0
0

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.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>