Jump to content
Xtreme .Net Talk

F# sample project can't build


Recommended Posts

Guest Antoine Besnard
Posted

Hi,

 

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

 

PS:

I also reinstalled Visual but it didn't changed anything

And the code is running on my coworkers computers

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...