Разверните ASP.NET MVC на Linux: лучшие практики, инструменты и неожиданности

Похоже, что цель была неправильной - вы пытались изменить свойство «масштаба» числа. Ответ уже был размещен здесь: https://greensock.com/forums/topic/19696-cannot-create-property-_gstweenid-on-number-570/

Счастливой жизни!

66
задан Cœur 22 January 2017 в 15:57
поделиться

3 ответа

The company I work for targets Mono on Linux as our main deployment environment. Thus there is no "additional" work - we provide the whole stack, from hardware, through operating system (customized and trimmed) to applications. Using Open Source gives huge savings for us and our clients (and yes, we do contribute back to the OS Projects we rely on).

The important thing is to constantly test using your actual target (sorry, Mono on Windows doesn't count). Sure, developers use Visual Studio, but the continous integration (using CruiseControl.Net, you'll need Mono 2.4.2 to run it on Linux) is done both on Windows and Linux, testing all Mono versions we expect to work on (it got much more stable recently, but still, regressions do happen between releases). It's quite easy to run parallel Mono versions on one *nix system, you can even include an svn snapshot build if you prefer to catch upstream regressions early. If you don't roll out your own distribution, then remember that most Linux vendors ship Mono with custom patches - this has caused problems for us before. Also, many distributions have a lot of lag updating Mono, and this is a rapidly advancing project.

For database layer we use mostly "plain" ADO.NET - Oracle (with dotConnect for Oracle, they support Mono) and SQLite (Mono ships with a working connector). I have also used the official ADO.NET Driver for MySQL (Connector/NET) and it, too, works well. ORM mappings are more tricky, but NHibernate is usable (keep in mind that they do not support Mono officially).

As for the build engine and tests - NAnt and NUnit are well known and well tested. With most recent versions of Mono xbuild (clone of MSBuild) actually got usable, but prepare yourself for contributing quite a lot patches if you decide to use it for more complex scenarios.

Write tests. Lots of them. Be prepared to contribute patches and bugreports, and if you use commercial components - make sure the supplier officially supports Mono.

34
ответ дан 24 November 2019 в 15:08
поделиться

В блоге Натана Бриджуотера есть несколько хороших статей, в которых, помимо прочего, показано

  • запуск MVC3 с бритвой на моно
  • миграция ASP.NET MVC из Windows / SQL Server в Linux / MySQL
  • установка и запуск MonoDevelop
  • установка моно из источника

http://iws.io/get-mvc3-razor-running-on -моно /

4
ответ дан Drew Noakes 24 November 2019 в 15:08
поделиться

Взгляните на проект Mono . Похоже, это то, что вы ищете. Если я правильно помню, сейчас в них интегрирован ASP.NET MVC.

Я никогда не работал с Mono, но, насколько я понимаю, различий не так много.

1
ответ дан 24 November 2019 в 15:08
поделиться
Другие вопросы по тегам:

Похожие вопросы: