ASP.Net MVC for Linux / Mono

I am thinking of developing a website using the ASP.Net MVC framework for Linux. I would like to know:

  • What are the best methods for developing such a site (can they differ for mono / Windows)?
  • any errors I should know about
  • any (material differences) - for example. missing / patented libraries / componentenst between Mono and .Net
  • Are there any special directives, modules needed to run Mono with Apache?
  • Are there any performance differences between a site hosted on Windows / IIS and Linux / Apache?
  • I intend to do most of my development using VS Studio - can a site be developed using VS and then deployed to Linux?

I know this question has been asked several times here on SO. However, most of the questions relate to 2008 or 2009, which is a very long time on the Internet. Things may have changed since those answers, so these answers can no longer be relevant.

I must say that I am NOT interested in hosting a site on a Windows server, so I am only interested in what works for deploying a Linux server.

+6
source share
2 answers

My experience is from 2011, but I'm sure that you will have to experiment to see the work, and what is not - this is my experience with Mono.

Most of your questions are extremely broad, and I think your question will be closed soon.

As for your last question, that was the way I did it, and it worked (developing in VS-> deploy in Linux), but you should know that:

  • just because your code will work in the VS debugger does not mean that it will work during deployment;
  • there is no one-to-one comparison between Mono and .Net. Even when everything works, this does not mean that they will work the same way. For example, the implementation of the encryption code used for http cookies was very different between mono and .net.
0
source

I am currently working on an MVC 4 application and we are using Mono. If you are just planning on having a basic website, you should go for it. But for more complex threads, to be honest, I think you should do a little research first to find out if the features you want to implement are supported in Mono. Things you should consider:

  • only a set of limited libraries is supported on mono (for example, we now have some problems due to the fact that mono libraries (Novell and DirectorySearcher) for LDAP do not support pagination)
  • the development environment will be different from your env server (I use Visual Studio, we managed to pass this restriction by adding a lot of logs)
  • we publish using FTP, so yes, you can deploy it from VS using the publishing profile configured for FTP
  • it's free, but it takes a long time to research and do special thoughts just for Mono's sake.
  • not much documentation, because not many use it, so if you have a specific problem, it will be more difficult to solve.
0
source

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


All Articles