thangchung
thangchung

Reputation: 2030

Could not reference F# library from C# web project in .NET 4.6?

In the past, I was used to do the reference from my C# web project to my F# library project (I wrote it), and that worked well. But now when I moved to .NET 4.6, I did the same thing, but I could not make it work. It always notified The following projects are not supported as references: <My F# library>. I got stuck on this issue in couples of days. Could anyone help me on this? Thanks in advance.

Upvotes: 4

Views: 207

Answers (1)

M&#225;rio Meyrelles
M&#225;rio Meyrelles

Reputation: 1792

Today I had the same problem. I'm using .NET 4.6 and F# Core 4.4. I tried to reference a F# class library on a ASP.NET 5 project and it didn't work. The error message was the same you mention. The only way to make a MVC project recognize F# is to use the latest stable version, ASP.NET 4.6.

For me, it seems that the new .NET Core stuff does not support yet the F# Class Libraries. I hope to see this working soon!

Upvotes: 1

Related Questions