Skip to content

Commit

Permalink
[illink] avoid IL1034 for .exe files
Browse files Browse the repository at this point in the history
Context: dotnet/linker#3124 (comment)

Android projects are class libraries, and this current triggers:

    ILLink error IL1034: Root assembly 'MyAndroidApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have entry point.
  • Loading branch information
jonathanpeppers committed Dec 15, 2022
1 parent b0e618b commit 182a675
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ This file contains the .NET 5-specific targets to customize ILLink
Condition=" '@(ResolvedFileToPublish->Count())' != '0' and '%(Filename)' != '' "
Include="@(_PreserveLists)" />
<TrimmerRootDescriptor Include="@(LinkDescription)" />
<TrimmerRootAssembly Update="@(TrimmerRootAssembly)" Condition=" '%(RootMode)' == 'EntryPoint' " RootMode="Library" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 182a675

Please sign in to comment.