Reputation: 3805
I find it confusing that Xamarin docs examples suggest adding permissions to AssemblyInfo.cs like that:
// Need to access the internet for GCM
[assembly: UsesPermission(Name = "android.permission.INTERNET")]
Why? Permissions are usually defined in AndroidManifest.xml and there's even GUI for that in Xamarin Studio.
Also seems like AssemblyInfo.cs contains information about title and version:
[assembly: AssemblyTitle("MyApp")]
[assembly: AssemblyVersion("1.0.0")]
What does that mean? AndroidManifest.xml also contains title and version info.
How are they related? Seems to be basic knowledge, but didn't found clear explanation about that.
Upvotes: 7
Views: 5111
Reputation: 3667
AssemblyInfo.cs
generates elements that are inserted into AndroidManifes.xml
.
More info in the official documentation.
Upvotes: 0