-
Couldn't load subscription status.
- Fork 561
Closed
Milestone
Description
Steps to Reproduce
-
Create a solution consisting of three projects:
App.csproj,Lib1.csproj,Lib2.csproj, in whichApp.csprojreferences bothLib1.csprojandLib2.csproj. -
Add the following file to both
Lib1.csprojandLib2.csproj:using System; using Android.Runtime; namespace Lib1 { [Register("examplelib.EmptyClass")] public class EmptyClass : Java.Lang.Object { } }
-
Create an
.apk:msbuild /t:SignAndroidPackage App.csproj
Expected Behavior
It should error out, as we have two assemblies which will each generate an example lib.EmptyClass Java type.
Actual Behavior
Warnings:
warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Lib1.EmptyClass, Lib1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Lib1.EmptyClass, Lib2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
warning : References to the type 'Lib1.EmptyClass' will refer to 'Lib1.EmptyClass, Lib1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Discussion:
The warning is correct, in that it should be emitted. However, because we emit that warning, we don't check for duplicate Java Callable Wrapper names. The problem is here:
Metadata
Metadata
Assignees
Labels
No labels