Skip to content

Commit

Permalink
Fix module initialization issue as described in dotnet/netcorecli-fsc#79
Browse files Browse the repository at this point in the history


- Add a Program.fs file with an entry point so that module values across the project get initialized

- Use explicit file inclusion instead of wildcard file inclusion in order to prevent compilation order issues
  • Loading branch information
lambdakris authored and mlorbetske committed Apr 26, 2017
1 parent 1414765 commit a7ef29d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="**/*.fs" />
<Compile Include="Tests.fs" />
<Compile Include="Program.fs" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module Program = let [<EntryPoint>] main _ = 0

0 comments on commit a7ef29d

Please sign in to comment.