-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzersuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
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: dotnet/linker#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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzersuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Type
Projects
Status
No status