Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Referencing F# code in android project

I'm doing a project where i am supposed to write an android application that uses a code-base of f# code. In doing so i am running into some problems regarding referencing this f# code in my android project.

I've been googling and it tells me that the f# code has to be in a PCL project that is referenced by the android project. I've done this, but the android project is still not able to recognise the namespaces and files declared in the other project.

I have a namespace called NimGame.Core where most of my .fs files are located. An example are shown in the picture below of my event queue module that is clearly located in NimGame.Core. IT can also be seen in my references that i have referenced the PCL project (NimGameCore) in my android project (NimGame). Example of fsharp code

But when i am trying to use the fsharp files in my c# code it doesn't show up. Example2

Any suggestions as to what can be causing this?

like image 880
Kasper Lederballe Sørensen Avatar asked Mar 08 '17 13:03

Kasper Lederballe Sørensen


People also ask

What does F mean in referencing?

The abbreviation ff. is used in citation to refer to a section for which no final page number can usefully be given. If there is only a single section following, f. may be used instead. More properly, it is still used, as originally, to refer to the next page or pages in a citation. As such, Hornblower 258 f.

What does F and FF stand for?

5 f. ( page 5 and the following page) pp. 5 ff. ( page 5 and the following pages)

What do we mean by referencing?

Referencing means acknowledging your source: in the body of your work (in-text referencing or citation ) AND. linking your citations to your list of works cited (also reference list or bibliography).

What is an example of a reference?

Books and chapters of books are examples of references that may be listed in a reference page.


1 Answers

There was a bug in Xamarin Studio and MonoDevelp which prevented IntelliSense from working when F# project was referenced from C# project. Additionally, F# types in C# code were underlined with red line.

The bug was fixed, so upgrading you IDE should solve the problem.

like image 147
Tomasz Maczyński Avatar answered Sep 21 '22 19:09

Tomasz Maczyński