Unable to use namespace from project after link is included? F # C #
I follow the multi-choice guide from Thomas Petricek. I am trying to create a C # unit test project to test some of the methods from the F # library, however even after adding a reference to the F # project in the C # project I cannot use any of the methods as they are not recognized and when I try to use the namespace from an F # project this is an unknown namespace.
Most of the solutions to questions like this seem to be targeting different frameworks, however I am targeting 4.5.2 in both projects.
What could be wrong?
source to share
One thing to check is to make sure the F # project is compiled and there are no errors.
When a C # project references an F # library, the C # compiler will look at the resulting file dll
and provide autocomplete based on the compiled library. This is different from when you reference a C # library from a C # project, as in this case the autocomplete is based on the checks that Visual Studio does in the background.
This means that whenever you change the public F # library API, you need to recompile it to make sure the C # project sees the latest version.
source to share