Unable to use namespace from project after including reference? F# C#

Viewed 389

I'm following a guide from Tomas Petricek on pluralsight. I'm trying to make a C# unit test project to test some methods from an F# library, however even after adding the reference to the F# project in the C# project I can't use any of the methods as they are not recognized and when trying to use the namespace from the F# project it is an unknown namespace.

Most solutions to questions like these appear to be the targeting of different frameworks, however, I am targeting 4.5.2 in both projects.

What could be going wrong?

2 Answers

For me the project build without issues and despite multiple dotnet clean; dotnet build; the IDE was still complaining. It said that my newly added modules of the references projects were not available in the test project.

In the end restarting VsCode did the trick.

I'm using VsCode 1.63 with Iodine and both projects are F# projects.

Related