Skip to content

Commit f62aa17

Browse files
committed
Use the AutoGenerateEntryPoint property as defined in the props file
1 parent d5afc4a commit f62aa17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.CommandLine.DragonFruit/targets/System.CommandLine.DragonFruit.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project>
22

3-
<PropertyGroup Condition="'$(DisableAutoGeneratedMain)' != 'true'">
3+
<PropertyGroup Condition="'$(AutoGenerateEntryPoint)' == 'true'">
44
<!-- The location of the generated program file. -->
55
<_GeneratedEntryPointFile>$(IntermediateOutputPath)$(MSBuildProjectName).Program.g$(DefaultLanguageSourceExtension)</_GeneratedEntryPointFile>
66
</PropertyGroup>
77

88
<Target Name="_GenerateRealEntryPointType"
99
BeforeTargets="CoreCompile"
1010
DependsOnTargets="PrepareForBuild;CoreGenerateDragonFruitProgramFile"
11-
Condition="'$(DisableAutoGeneratedMain)' != 'true'">
11+
Condition="'$(AutoGenerateEntryPoint)' == 'true'">
1212
<PropertyGroup>
1313
<StartupObject>AutoGeneratedProgram</StartupObject>
1414
</PropertyGroup>

0 commit comments

Comments
 (0)