Closed Darkle closed 1 year ago
Looks like it wasn't an issue with fable remoting but with my fsproj file. I switched the shared.fsproj
file to have <OutputType>Library</OutputType>
instead of <OutputType>Exe</OutputType>
and it seems to work fine now.
Hi, I have a repo which contains multiple F# projects. I would like to share some code between these projects, so I have put the shared code in a "shared" project folder and reference them in each F# projects
.fsproj
file usingProjectReference
- e.g. This is in theapi.fsproj
file.In the shared code I have a Logger module which sends logs to the api via fable remoting. However whenever the fable remoting client code is called, I get an error of:
I have created a minimal reproduction here: https://github.com/Darkle/fable-remoting-issue-temp If you run
dotnet restore
in both folders, then in the api folder rundotnet run
, you will get an error message of: