1 / 30

.Net  on Linux? Yes, we can with Mono!

.Net  on Linux? Yes, we can with Mono!. Emanuele Garofalo. Chi sono ?. Emanuele Garofalo Blog: http:/www.dotnetcampania.org/blogs/nezumi Contatti : E-mail: nezumi.nailo@gmail.com. Agenda. Mono Da dove viene ? Dov’è ? Dove andrà ? A che serve?. Cos’è Mono?.

tadita
Télécharger la présentation

.Net  on Linux? Yes, we can with Mono!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. .Net on Linux? Yes, we can with Mono! EmanueleGarofalo

  2. Chi sono? EmanueleGarofalo Blog: http:/www.dotnetcampania.org/blogs/nezumi Contatti: • E-mail: nezumi.nailo@gmail.com

  3. Agenda • Mono • Da dove viene? • Dov’è? • Dove andrà? • A che serve?

  4. Cos’è Mono?  It is an open source implementation of Microsoft's .Net Framework based on the ECMA standards for C# and the Common Language Runtime. (fonte: wikipedia)

  5. E i brevetti? .Net Framework Teconologie sotto ECMA ASP.NET ADO.NETWindows.Forms

  6. Ma Microsoft sorprende tutti Community Promise This is a personal promise directly from Microsoft to you, and you acknowledge as a condition of benefiting from it that no Microsoft rights are received from suppliers, distributors, or otherwise in connection with this promise. If you file, maintain, or voluntarily participate in a patent infringement lawsuit against a Microsoft implementation of any Covered Specification, then this personal promise does not apply with respect to any Covered Implementation made … http://www.microsoft.com/interop/cp/default.mspx

  7. Basta Storia!! • Le domande ricorrenti: • Perché dovrei utilizzare un’implementazione di altri? • Ci sono limiti che mi vengono imposti dai brevetti?

  8. Ma a parte questo perché se ne parla bene? • Come ne parlereste se vi dicessero che: • Si può usare Mono per sviluppare per : • Wii • PlayStation 3 • iPhone • …..

  9. Nomi…vogliamo i nomi!!! • Esempi famosi di impiego di Mono • Unity 3d • MyAnimalCentre (per wii) • F-Spot • TomBoy • Paint.Net • Sims 3 • Keepass

  10. Ma gli strumenti? • Gratuti • Mono Develop • MoMA (Mono MigrationAnalyzer) • Gtk# (c#wrapforGtk+) • MoonLight • A pagamento • Mono Toolsfor V.S. • MonoTouch

  11. Il vero punto di forza: La portabilità Ma ci aggiungerei anche…la compatibilità • I progetti creati con VS sono compatibili con Mono Develop • I binari prodotti da VS sono compatibili con Mono

  12. Gli accorgimenti • I nome dei file: su unix e linux il file system è case sensitive • “pippo.jpg” != “Pippo.jpg” • Separatori nei path • su Windows si usa “\” • su Linux si usa “/” • Windows form • I controlli e i form devono essere creati in un unico thread

  13. …ancora accorgimenti • Asp.Net (Mono NON supporta ASP) • Non si può utilizzare mod_mono su windows • Usare una cartella “Bin” invece che “bin” • Asp.Net 2.0 MembershipProvider • Richiede la creazione di un database SQLite nella cartella “App_Data” (/App_Data/aspnetdb.sqlite) per la memorizzazione delle informazioni sugli account

  14. Come faccio a sapere se il mio codice è portabile? • MoMA • Un tool in grado di evidenziare alcuni possibili problemi in cui potreste insorgere nel portare il codice da .Net a Mono

  15. Step 1/4

  16. Step 2/4

  17. Step 3/4

  18. Step 4/4

  19. …andfinally…the report

  20. Il deploy su apache • Quando si sente parlare di linux si pensa subito a complicatissime righe di codice da scrivere…o peggio ancora a comandi da scrivere a ripetizione sulla shellma il deploy su apache grazie a Mono Develop si presenta come una passeggiata su una spiaggia al chiaro di luna…semplice ma efficace 

  21. Scegliere “l’obbiettivo di produzione”

  22. Messa in produzione

  23. MA ORA BASTA CHIACCHIERE…LINUX!! LINUX!! VOGLIAMO LINUX!! DEMO

  24. Un grazie di cuore a tuttigli sponsor!

  25. La vostraopinione per noi è fondamentale: compilateil modulo di feedback! GraZIE PER L’ATTENZIONE

More Related