WebSharper F # - How to start a template project created using VS Code and Ionide?

I have never worked with .NET before, and I would like to know how to start a WebSharper F # project without any IDE.

Context

  • I am using Linux with Mono 4.4.2
  • The project was created using VS Code and Ionide using the websharperserverclient template .
  • I can compile the code using the automatically generated build.sh file or by executing xbuild , but only .dll files are generated, I do not see any .exe

Thank you in advance for your help!

Update

Using the websharperserverclient , I get strange results, as shown in the figure below, and xsp4 does not give any hint of this.

enter image description here

+3
source share
1 answer

WebSharper can work as an ASP.NET module, so the easiest way to launch your application is to run xsp4 (the ASP.NET mono server itself) in the project folder. This is good as a fast server for testing; for production, you better set up a server, such as Apache or nginx .

Another solution would be to use the websharpersuave template, which creates a self-service executable.

+2
source

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


All Articles