Web project for F #

I am creating a project system for Visual Studio MVC web projects with controllers written in F #. This is pretty cool. I can create and run applications, but I have a problem with FSharp Language Service.

In the editor, it displays coloring and syntax diagnostics. With one problem - it does not pick up links to projects. Despite the fact that during the assembly he selects them and successfully creates the project, on the screen he shows the objects / namespaces from the referenced assemblies / projects as unresolved.

If someone here has some knowledge about integrating with the F # Language service - please help me get it working

In response to Tomas:

The code for the F # controllers is in the project file, and, as I mentioned, I can compile and run it. Initially, we saved the F # code in a separate project, and the desire to get rid of this additional complexity is what caused this project. It is not ASP.MVC, although it is a Bistro MVC .

Edit

Now BistroMVC solves this problem in the latest version of Bistro Designer, which is based on the project expander F #

+3
source share
2 answers

Can you describe what you are doing in more detail? Is it a “flavoring" or a new project system? Are there other aspects of the “design environment”? For example, if you have F # code with

#if DEBUG
let x = 3
#else
let x = 4
#endif

VS Debug Release?

(Offhand , F # , , fsbugs@microsoft.com, .)

0

F # -? , ASP.NET MVC, ASP.NET WebForms. WebForms ( F # ). , #if, :

#if EDITING
#r "Your.Referenced.Library.dll"
#endif

... ( ) F # - F #. ( , !)

+1

Source: https://habr.com/ru/post/1728681/


All Articles