DEV Community

Discussion on: Azure Functions With F#

brettrowberry profile image
brettrowberry

While watching this video youtube.com/watch?v=SSBc5ucHq2E, I noticed that I forgot to include

  <ItemGroup>
    <Compile Include="HttpTrigger.fs" />
  </ItemGroup>

in my .fsproj file.

Thread Thread
aaronpowell profile image
Aaron Powell Author

Ah yes, you need to explicitly include all F# files in the fsproj and you need to include them in the order you want them loaded by the compiler (since a file can only access what's been loaded prior to it).

Thread Thread
brettrowberry profile image
brettrowberry

It’s funny because I knew that, but I guess I’ve never translated a csproj to an fsproj by hand, so it’s never come up. Thanks!