• After more than 30 years running websites and forums I am retiring.

    I have made many friends through the years. I will cherish my time getting to know you. I wish you all the best. This was not an easy decision to make. The cost to keep the communities running has gotten to the point where it's just too expensive. Security certificates, hosting cost, software renewals and everything else has increased threefold. While costs are up ad revenue is down. It's no longer viable to keep things running.

    All sites will be turned off on Thursday 30 November 2023. If you are interested in acquiring any of the websites I own you can Email Schwarz Network.

F# sample project can't build


Antoine Besnard


I'm having a strange behaviour with all my F# files

They're all creating C# errors

So I've just recreated a new F# project and here's what it look like

namespace Test

module Say =
let hello name =
printfn "Hello %s" name

And errors are :

{ expected
; expected
A namespace cannot directly contain members such as fields or methods

Regarding to those errors it seems that Visual is trying to build F# with C# compiler.

But the F# tools are installed :

F# desktop language support

F# language support

F# language spport for web projects

I don't really know what's wrong, bescause I already make it work on this computer
I also Repaired Visual

Does anybody know what wrong ?

Thanks for reading

I also reinstalled Visual but it didn't changed anything
And the code is running on my coworkers computers

Continue reading...
Top Bottom