Open
Description
Starting in this Maestro bump: dotnet/android#7630
We started seeing:
ILLink error IL1034: Root assembly 'MyAndroidApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have entry point.
Might be caused by: #3124 (comment)
Android apps are class libraries, because there is no static void Main()
method.
To work around this I did:
<Target Name="_FixRootAssembly" AfterTargets="PrepareForILLink">
<ItemGroup>
<TrimmerRootAssembly Update="@(TrimmerRootAssembly)" Condition=" '%(RootMode)' == 'EntryPoint' " RootMode="Library" />
</ItemGroup>
</Target>
Filing an issue here, to see if this is what we should actually do -- or something else.