Skip to content

Commit

Permalink
Merge pull request #309 from ctaggart/fsharp-exe
Browse files Browse the repository at this point in the history
prepend version source file to compile file list
  • Loading branch information
AArnott authored Mar 19, 2019
2 parents ab61962 + 23f531f commit 6d930a1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@
</Nerdbank.GitVersioning.Tasks.CompareFiles>
<Copy Condition=" '$(AssemblyVersionInfoChanged)' == 'true' " SourceFiles="$(NewVersionSourceFile)" DestinationFiles="$(VersionSourceFile)" />
<ItemGroup>
<Compile Include="$(VersionSourceFile)" />
<!-- prepend the source file so we don't break F# console apps that have a "special" last source file -->
<_CompileWithVersionFile Include="$(VersionSourceFile);@(Compile)" />
<Compile Remove="@(Compile)" />
<Compile Include="@(_CompileWithVersionFile)" />
<_CompileWithVersionFile Remove="@(_CompileWithVersionFile)" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 6d930a1

Please sign in to comment.