Skip to content

Commit

Permalink
Make sure startup file is an up-to-date check input
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jul 17, 2024
1 parent b8291d2 commit 03340b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SmallSharp/SmallSharp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Debugger="$(DebugSmallSharp)"/>
</Target>

<Target Name="StartupFile" BeforeTargets="BeforeCompile;CoreCompile;CompileDesignTime" DependsOnTargets="$(StartupFileDependsOn)" />
<Target Name="StartupFile" BeforeTargets="BeforeCompile;CoreCompile;CompileDesignTime;CollectUpToDateCheckInputDesignTime" DependsOnTargets="$(StartupFileDependsOn)" />

<Target Name="CollectStartupFile">
<ItemGroup>
Expand All @@ -48,6 +48,7 @@
causing those items to be hardcoded in the .csproj -->
<Compile Remove="@(Compile -> WithMetadataValue('RelativeDir', ''))" />
<Compile Include="$(StartupFile)" Condition="'$(StartupFile)' != '' and Exists('$(StartupFile)')" />
<UpToDateCheckInput Include="$(StartupFile)" Condition="'$(StartupFile)' != '' and Exists('$(StartupFile)')" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 03340b5

Please sign in to comment.