DEV Community

Discussion on: Azure Functions With F#

Collapse
aaronpowell profile image
Aaron Powell Author

Did you include a reference to FSharp.Core in the fsproj file?

Does it output an error messages when you try and restore? Can you share the output of dotnet restore?

Collapse
brettrowberry profile image
brettrowberry

Yes. dotnet restore says it succeeds. I’ll give it a look tomorrow.

Thread Thread
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!